diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-08 23:03:40 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-08 23:03:40 +0000 |
| commit | 4ce1fb14488dc9082ca9bff51cd95b186fbf9123 (patch) | |
| tree | 072d9a850b49adbeb5cdebaf28ceaa2511fb0647 /llvm/lib/Analysis | |
| parent | 212182d12b648f41041650a8dbe3476400245204 (diff) | |
| download | bcm5719-llvm-4ce1fb14488dc9082ca9bff51cd95b186fbf9123.tar.gz bcm5719-llvm-4ce1fb14488dc9082ca9bff51cd95b186fbf9123.zip | |
Add variants of ult, ule, etc. which take a uint64_t RHS, for convenience.
llvm-svn: 100824
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index b8ccb9f68fe..41c8550fc98 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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]; |

