[llvm-commits] CVS: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
Nick Lewycky
nicholas at mxc.ca
Fri Mar 2 19:14:57 PST 2007
Changes in directory llvm/lib/Transforms/Scalar:
PredicateSimplifier.cpp updated: 1.53 -> 1.54
---
Log message:
Translate bit operations to English.
---
Diffs of the changes: (+2 -1)
PredicateSimplifier.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
diff -u llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.53 llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.54
--- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.53 Fri Mar 2 18:48:31 2007
+++ llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp Fri Mar 2 21:14:40 2007
@@ -1461,7 +1461,8 @@
const IntegerType *Ty = CI->getType();
LV = LT;
- add(O.LHS, ConstantInt::get(Ty->getMask().lshr(1)),
+ add(O.LHS, ConstantInt::get(
+ APInt::getSignedMaxValue(Ty->getBitWidth())),
ICmpInst::ICMP_UGT);
} else if (LV == SGT && CI->getValue().isPositive()) {
// i8 %x s> 5 implies %x > 5 and %x u< 128
More information about the llvm-commits
mailing list