From: Nick Lewycky Date: Wed, 4 Jan 2012 09:42:30 +0000 (+0000) Subject: Remove pointless asserts. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=234f8c9ef89b67475693b399f7d8ecb3fe0cbfb5;p=oota-llvm.git Remove pointless asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147529 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineShifts.cpp b/lib/Transforms/InstCombine/InstCombineShifts.cpp index cb8d6069d9e..a66e6508952 100644 --- a/lib/Transforms/InstCombine/InstCombineShifts.cpp +++ b/lib/Transforms/InstCombine/InstCombineShifts.cpp @@ -595,7 +595,6 @@ Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, ConstantInt *Op1, // (X << C1) >>u C2 --> X >>u (C2-C1) & (-1 >> C2) if (I.getOpcode() == Instruction::LShr && ShiftOp->getOpcode() == Instruction::Shl) { - assert(ShiftOp->getOpcode() == Instruction::Shl); ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); // (X <>u C2 --> X >>u (C2-C1) if (ShiftOp->hasNoUnsignedWrap()) { @@ -615,7 +614,6 @@ Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, ConstantInt *Op1, // we can handle (X <>s C2 since it only shifts in sign bits. if (I.getOpcode() == Instruction::AShr && ShiftOp->getOpcode() == Instruction::Shl) { - assert(ShiftOp->getOpcode() == Instruction::Shl); if (ShiftOp->hasNoSignedWrap()) { // (X <>s C2 --> X >>s (C2-C1) ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff);