mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Avoid a potential assert out if the loop increment is > 64 bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34798 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -143,7 +143,7 @@ Value *SCEVExpander::visitAddRecExpr(SCEVAddRecExpr *S) {
|
|||||||
|
|
||||||
// IF the step is by one, just return the inserted IV.
|
// IF the step is by one, just return the inserted IV.
|
||||||
if (ConstantInt *CI = dyn_cast<ConstantInt>(F))
|
if (ConstantInt *CI = dyn_cast<ConstantInt>(F))
|
||||||
if (CI->getZExtValue() == 1)
|
if (CI->getValue() == 1)
|
||||||
return I;
|
return I;
|
||||||
|
|
||||||
// If the insert point is directly inside of the loop, emit the multiply at
|
// If the insert point is directly inside of the loop, emit the multiply at
|
||||||
|
Reference in New Issue
Block a user