aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-08 23:03:40 +0000
committerDan Gohman <gohman@apple.com>2010-04-08 23:03:40 +0000
commite05678132345eb8a632362dbd320ee7d36226e67 (patch)
tree5abab0d5eea67b10e047a6b8f07c29aff47754c5 /lib/Analysis
parent287df1bc0309962770b6c176f2d143795dd3cc2f (diff)
downloadexternal_llvm-e05678132345eb8a632362dbd320ee7d36226e67.zip
external_llvm-e05678132345eb8a632362dbd320ee7d36226e67.tar.gz
external_llvm-e05678132345eb8a632362dbd320ee7d36226e67.tar.bz2
Add variants of ult, ule, etc. which take a uint64_t RHS, for convenience.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index b8ccb9f..41c8550 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -4065,7 +4065,7 @@ ScalarEvolution::getConstantEvolutionLoopExitValue(PHINode *PN,
if (I != ConstantEvolutionLoopExitValue.end())
return I->second;
- if (BEs.ugt(APInt(BEs.getBitWidth(),MaxBruteForceIterations)))
+ if (BEs.ugt(MaxBruteForceIterations))
return ConstantEvolutionLoopExitValue[PN] = 0; // Not going to evaluate it.
Constant *&RetVal = ConstantEvolutionLoopExitValue[PN];