diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 17:17:21 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 17:17:21 +0000 |
commit | e479ef0b411f2cd9134bd1f6e8b9f12e05089d40 (patch) | |
tree | e14a5fe899964ce24f02e0c67c87a7c94720552f /lib/Analysis/ScalarEvolution.cpp | |
parent | 68e2300ad965bf08af11ae363bb85e3badf964dc (diff) |
Fix last night's 445.gobmk breakage which was caused by comparison of
APInt's of unequal bitwidth.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 44b5f61749..8b571cf277 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1405,6 +1405,7 @@ SCEVHandle ScalarEvolutionsImpl::createSCEV(Value *V) { APInt CommonFact = GetConstantFactor(LHS); assert(!CommonFact.isMinValue() && "Common factor should at least be 1!"); + CommonFact.zextOrTrunc(CI->getValue().getBitWidth()); if (CommonFact.ugt(CI->getValue())) { // If the LHS is a multiple that is larger than the RHS, use +. return SCEVAddExpr::get(LHS, |