InstCombine: Teach foldLogOpOfMaskedICmpsHelper that sign bit tests are bit tests.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 9 Jan 2012 17:23:27 +0000 (17:23 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 9 Jan 2012 17:23:27 +0000 (17:23 +0000)
commit47a86077212bb680c3273842b1aba801757836ea
tree36081a5fdbfdebd998266144707d389dc60904bd
parent4e3a40293f2e6f04396d2c7d355c5f2a03488c87
InstCombine: Teach foldLogOpOfMaskedICmpsHelper that sign bit tests are bit tests.

This subsumes several other transforms while enabling us to catch more cases.

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