[llvm-commits] CVS: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Mar 17 07:48:23 PDT 2007
Changes in directory llvm/lib/Transforms/Scalar:
PredicateSimplifier.cpp updated: 1.57 -> 1.58
---
Log message:
Silence warning
---
Diffs of the changes: (+2 -2)
PredicateSimplifier.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
diff -u llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.57 llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.58
--- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.57 Thu Mar 15 21:37:39 2007
+++ llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp Sat Mar 17 09:48:06 2007
@@ -2054,8 +2054,8 @@
case ICmpInst::ICMP_SLT:
case ICmpInst::ICMP_ULT:
if (Op1->getValue() != 0)
- NextVal = cast<ConstantInt>(ConstantExpr::getAdd(
- Op1, ConstantInt::get(Op1->getType(), -1)));
+ NextVal = cast<ConstantInt>(ConstantExpr::getSub(
+ Op1, ConstantInt::get(Op1->getType(), 1)));
break;
case ICmpInst::ICMP_SGT:
case ICmpInst::ICMP_UGT:
More information about the llvm-commits
mailing list