InstCombine: Teach icmp merging about the equivalence of bit tests and UGE/ULT with...
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 11 Feb 2014 21:09:03 +0000 (21:09 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 11 Feb 2014 21:09:03 +0000 (21:09 +0000)
commit1e6240a85ddafbd35af931958d38b79b6683f23b
treeec52412741e2a5fcc6deb1d01f581345318a98f2
parent75bf59280711c9f45b10d18ed14b63de9718c0e2
InstCombine: Teach icmp merging about the equivalence of bit tests and UGE/ULT with a power of 2.

This happens in bitfield code. While there reorganize the existing code
a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201176 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/sign-test-and-or.ll