mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use SCEVConstant::get instead of SCEVUnknown::get to create an
integer constant SCEV. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
383bcb2e78
commit
e19dd87598
@ -264,8 +264,8 @@ Instruction *IndVarSimplify::LinearFunctionTestReplace(Loop *L,
|
|||||||
// The IterationCount expression contains the number of times that the
|
// The IterationCount expression contains the number of times that the
|
||||||
// backedge actually branches to the loop header. This is one less than the
|
// backedge actually branches to the loop header. This is one less than the
|
||||||
// number of times the loop executes, so add one to it.
|
// number of times the loop executes, so add one to it.
|
||||||
Constant *OneC = ConstantInt::get(IterationCount->getType(), 1);
|
ConstantInt *OneC = ConstantInt::get(IterationCount->getType(), 1);
|
||||||
TripCount = SCEVAddExpr::get(IterationCount, SCEVUnknown::get(OneC));
|
TripCount = SCEVAddExpr::get(IterationCount, SCEVConstant::get(OneC));
|
||||||
IndVar = L->getCanonicalInductionVariableIncrement();
|
IndVar = L->getCanonicalInductionVariableIncrement();
|
||||||
} else {
|
} else {
|
||||||
// We have to use the preincremented value...
|
// We have to use the preincremented value...
|
||||||
|
Loading…
Reference in New Issue
Block a user