[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)
commit74494d017998436694da3ebc8af7cf7772d8cb48
treeaaa0891ac4aa04afb6c343d5875333e50a01802c
parentee1fac61d842d628ffe01c5fadd47fd936a2312f
[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.

llvm-svn: 298644
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp