Tweak my last commit to be less conservative about uses.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 8 Jan 2012 21:12:51 +0000 (21:12 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 8 Jan 2012 21:12:51 +0000 (21:12 +0000)
commitd4242d8ab11b0da74867299cec7c2f6354c037dd
tree19ea87c88e227555c78e1522905c011730d6ed68
parent79aa048d2102a7d4c8abbba82b4b8a41dbc32214
Tweak my last commit to be less conservative about uses.

We still save an instruction when just the "and" part is replaced.
Also change the code to match comments more closely.

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