Don't emit a bit test if there is only one case the test can yield false. A simple...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 14 Jul 2011 01:38:42 +0000 (01:38 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 14 Jul 2011 01:38:42 +0000 (01:38 +0000)
commit3ff25514ce24a521fc9524eefb257a1f5f262d84
treebbf4d09b831d59ae312e5b8a3f42dda05b6414c1
parentd77ec6208cef2a8e615181c2bf0fc5a50a37a20b
Don't emit a bit test if there is only one case the test can yield false. A simple SETNE is sufficient.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135126 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/Target/README.txt
test/CodeGen/X86/switch-bt.ll