[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 9 14:05:58 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.237 -> 1.238
---
Log message:
Fix InstCombine/2004-08-09-RemInfLoop.llx
This should go into the 1.3 branch
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.237 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.238
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.237 Wed Aug 4 03:24:25 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Mon Aug 9 16:05:48 2004
@@ -829,7 +829,7 @@
if (I.getType()->isSigned())
if (Value *RHSNeg = dyn_castNegVal(I.getOperand(1)))
if (!isa<ConstantSInt>(RHSNeg) ||
- cast<ConstantSInt>(RHSNeg)->getValue() >= 0) {
+ cast<ConstantSInt>(RHSNeg)->getValue() > 0) {
// X % -Y -> X % Y
AddUsesToWorkList(I);
I.setOperand(1, RHSNeg);
More information about the llvm-commits
mailing list