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:
ca703bd
)
strength reduce a ridiculous use of APInt.
author
Chris Lattner
<sabre@nondot.org>
Sat, 3 Apr 2010 06:13:12 +0000
(06:13 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 3 Apr 2010 06:13:12 +0000
(06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100274
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/IndVarSimplify.cpp
b/lib/Transforms/Scalar/IndVarSimplify.cpp
index a6d184331889c3a0280d581e1162869d124b864f..b5fdd0c4a17ab366369d8319f2ff2f373c903660 100644
(file)
--- a/
lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/
lib/Transforms/Scalar/IndVarSimplify.cpp
@@
-632,8
+632,7
@@
static bool CanUseSIToFP(ConstantFP *InitV, ConstantFP *ExitV,
return true;
// If the iteration range can be handled by SIToFPInst then use it.
- APInt Max = APInt::getSignedMaxValue(32);
- if (Max.getZExtValue() > static_cast<uint64_t>(abs64(intEV - intIV)))
+ if (abs64(intEV - intIV) < INT32_MAX)
return true;
return false;