OSDN Git Service

Optimize the "bit test" code path for switch lowering in the
authorDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 02:06:24 +0000 (02:06 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 02:06:24 +0000 (02:06 +0000)
commita2375554a0236fc056f8cdb659890bcf81f24a6b
treeca54810bf847d0442f8db0df9e16a780276f1a7a
parent4c27741adcd10a796a2d4e5e3c9892a760900838
Optimize the "bit test" code path for switch lowering in the
case where the bit mask has exactly one bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106716 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/switch-bt.ll [new file with mode: 0644]