]> granicus.if.org Git - llvm/commit
[InstCombine] Remove some code from visitAnd that dealt with trying to reduce the...
authorCraig Topper <craig.topper@gmail.com>
Thu, 23 Mar 2017 21:00:13 +0000 (21:00 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 23 Mar 2017 21:00:13 +0000 (21:00 +0000)
commit24cd06b69ff1aa4f970d5387c337092818f4c3c8
treeaa378fec4df0ed4be63cc925c2f0b063180a0f39
parent36bb50f5293da49e89ae560ab9bba0f951ee46c6
[InstCombine] Remove some code from visitAnd that dealt with trying to reduce the LHS of a sub to 0. This should now be fully handled by SimplifyDemandedInstructionBits now.

Now that we call ShrinkDemandedConstant on the RHS of sub this should be taken care of. This code doesn't trigger on any in tree regressions, but did before ShrinkDemandedConstant was added to the RHS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298644 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp