[llvm-commits] [llvm] r147528 - in /llvm/trunk: lib/Transforms/InstCombine/InstCombineShifts.cpp lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp test/Transforms/InstCombine/shift.ll
Roman Divacky
rdivacky at freebsd.org
Wed Jan 4 06:47:31 PST 2012
> + if (I.getOpcode() == Instruction::AShr &&
> + ShiftOp->getOpcode() == Instruction::Shl) {
> + assert(ShiftOp->getOpcode() == Instruction::Shl);
You dont need the assert as you tested this in the if condition.
More information about the llvm-commits
mailing list