Reapply r108378, with bugfixes, testcase, and improved comment formatting.
authorOwen Anderson <resistor@mac.com>
Thu, 15 Jul 2010 15:00:23 +0000 (15:00 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 15 Jul 2010 15:00:23 +0000 (15:00 +0000)
commit96fe621e078837a150b321003f1dd07dd2b830ba
treea572c6bd15b4a082ff6d41ddf5b44ecddfdd05f2
parente61669046683f3436c880af3bd3ad91ae2ec690b
Reapply r108378, with bugfixes, testcase, and improved comment formatting.
This now passes LIT, nighty test, and llvm-gcc bootstrap on my machine.

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