projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa83404
)
Translate bit operations to English.
author
Nick Lewycky
<nicholas@mxc.ca>
Sat, 3 Mar 2007 03:14:40 +0000
(
03:14
+0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Sat, 3 Mar 2007 03:14:40 +0000
(
03:14
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34868
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/PredicateSimplifier.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/PredicateSimplifier.cpp
b/lib/Transforms/Scalar/PredicateSimplifier.cpp
index a0f686e204e57b355387a704bd12d90327ef2ea6..b425a8c31323066ced962d8a65af594839b21071 100644
(file)
--- 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