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)
commit8e0163ac1e8fcf0f8d2340d65439edef8230b01c
treeca54810bf847d0442f8db0df9e16a780276f1a7a
parentb8ac3b035ba14663ebe57fde17f6a9f25134e005
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]