[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
sabre at nondot.org
Sat Jan 27 15:08:49 PST 2007
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.608 -> 1.609
---
Log message:
Fix test/Transforms/InstCombine/2007-01-27-AndICmp.ll, a miscompilation of
Mozilla that Anton tracked down.
---
Diffs of the changes: (+2 -1)
InstructionCombining.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.608 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.609
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.608 Sun Jan 21 23:51:25 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sat Jan 27 17:08:34 2007
@@ -3288,7 +3288,8 @@
Instruction *Add = BinaryOperator::createAdd(LHSVal, AddCST,
LHSVal->getName()+".off");
InsertNewInstBefore(Add, I);
- return new ICmpInst(ICmpInst::ICMP_UGT, Add, AddCST);
+ return new ICmpInst(ICmpInst::ICMP_UGT, Add,
+ ConstantInt::get(Add->getType(), 1));
}
break; // (X != 13 & X != 15) -> no change
}
More information about the llvm-commits
mailing list