From: Craig Topper Date: Thu, 6 Apr 2017 21:29:43 +0000 (+0000) Subject: [InstCombine] Remove testing assert I accidentally left in r299710. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8a82f02009813a0e89dd30e179c4753ece5c08b;p=llvm [InstCombine] Remove testing assert I accidentally left in r299710. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299715 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/lib/Transforms/InstCombine/InstCombineAddSub.cpp index a0d74677dc6..9d2038a74f0 100644 --- a/lib/Transforms/InstCombine/InstCombineAddSub.cpp +++ b/lib/Transforms/InstCombine/InstCombineAddSub.cpp @@ -1625,10 +1625,8 @@ Instruction *InstCombiner::visitSub(BinaryOperator &I) { 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); - } } }