mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
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
This commit is contained in:
parent
68e2300ad9
commit
e479ef0b41
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user