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 | 6ba8edc78988d686f0ef48c9c93ebd475082759f (patch) | |
tree | e7e2f5dca69d19548c97450c2b059efab49c4923 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 742d1704e1cc1870c44a17181df694a66f1dc2f9 (diff) | |
download | bcm5719-llvm-6ba8edc78988d686f0ef48c9c93ebd475082759f.tar.gz bcm5719-llvm-6ba8edc78988d686f0ef48c9c93ebd475082759f.zip |
Fix last night's 445.gobmk breakage which was caused by comparison of
APInt's of unequal bitwidth.
llvm-svn: 34790
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 44b5f61749f..8b571cf2779 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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, |