InstCombine: Add a few missing combines for ANDs and ORs of sign bit tests.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 29 Mar 2011 22:06:41 +0000 (22:06 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 29 Mar 2011 22:06:41 +0000 (22:06 +0000)
commit9822b869fc4310dd0584838ca79745f3d051ca74
treeabc186a665e5eafa082fb529bbd6d0f7c1193390
parentb715ce35d709e911f0936cfdb6b98aef15d0d5cf
InstCombine: Add a few missing combines for ANDs and ORs of sign bit tests.

On x86 we now compile "if (a < 0 && b < 0)" into
testl %edi, %esi
js IF.THEN

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128496 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/sign-test-and-or.ll [new file with mode: 0644]