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:
68e2300
)
Fix last night's 445.gobmk breakage which was caused by comparison of
author
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 17:17:21 +0000
(17:17 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Thu, 1 Mar 2007 17:17:21 +0000
(17:17 +0000)
APInt's of unequal bitwidth.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34790
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolution.cpp
b/lib/Analysis/ScalarEvolution.cpp
index 44b5f61749fe76dfb81b9e886a657ddb3a9be319..8b571cf27798495341d466a8d46942385795695c 100644
(file)
--- 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,