[llvm-commits] [release_13] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
John Criswell
criswell at cs.uiuc.edu
Mon Aug 9 14:34:44 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.237 -> 1.237.2.1
---
Log message:
Merged in changes to the instruction combining pass.
---
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.237.2.1
--- 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:34:34 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