InstCombine: canonicalize sext-and --> select
authorNadav Rotem <nrotem@apple.com>
Wed, 30 Jan 2013 06:35:22 +0000 (06:35 +0000)
committerNadav Rotem <nrotem@apple.com>
Wed, 30 Jan 2013 06:35:22 +0000 (06:35 +0000)
commitcc687faba373e6aa3cefe594bd9f3212e18617eb
treea53df8faf4e5c5121303786d1805606a54407be2
parent581126e4a1daf5e7e6203bf81769f96bea25e601
InstCombine: canonicalize sext-and --> select
                          sext-not-and --> select.

Patch by Muhammad Tauqir Ahmad.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173901 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/logical-select.ll
test/Transforms/InstCombine/mul.ll
test/Transforms/InstCombine/vector-casts.ll