diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2007-03-03 03:14:40 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2007-03-03 03:14:40 +0000 |
commit | b6431da7be3035231c33c87c6fcbb97ad1bc8d46 (patch) | |
tree | 3e35427b01eaf07022815984004132d1aef9140d /lib/Transforms/Scalar/PredicateSimplifier.cpp | |
parent | fa83404afa09234daa5aced7bd78ccff4f7e6750 (diff) |
Translate bit operations to English.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/PredicateSimplifier.cpp')
-rw-r--r-- | lib/Transforms/Scalar/PredicateSimplifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp index a0f686e204..b425a8c313 100644 --- a/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -1461,7 +1461,8 @@ namespace { 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 |