[llvm] r299715 - [InstCombine] Remove testing assert I accidentally left in r299710.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 14:29:44 PDT 2017
Author: ctopper
Date: Thu Apr 6 16:29:43 2017
New Revision: 299715
URL: http://llvm.org/viewvc/llvm-project?rev=299715&view=rev
Log:
[InstCombine] Remove testing assert I accidentally left in r299710.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp?rev=299715&r1=299714&r2=299715&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp Thu Apr 6 16:29:43 2017
@@ -1625,10 +1625,8 @@ Instruction *InstCombiner::visitSub(Bina
APInt RHSKnownZero(BitWidth, 0);
APInt RHSKnownOne(BitWidth, 0);
computeKnownBits(Op1, RHSKnownZero, RHSKnownOne, 0, &I);
- if ((*Op0C | RHSKnownZero).isAllOnesValue()) {
- assert(0);
+ if ((*Op0C | RHSKnownZero).isAllOnesValue())
return BinaryOperator::CreateXor(Op1, Op0);
- }
}
}
More information about the llvm-commits
mailing list