mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Revert "Reverse the order for collecting the parts of an addrec. The order", it
is breaking llvm-gcc bootstrap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8f6326c06
commit
ae08625085
@ -1902,10 +1902,10 @@ static void CollectSubexprs(const SCEV *S, const SCEVConstant *C,
|
|||||||
} else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
|
} else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
|
||||||
// Split a non-zero base out of an addrec.
|
// Split a non-zero base out of an addrec.
|
||||||
if (!AR->getStart()->isZero()) {
|
if (!AR->getStart()->isZero()) {
|
||||||
|
CollectSubexprs(AR->getStart(), C, Ops, SE);
|
||||||
CollectSubexprs(SE.getAddRecExpr(SE.getIntegerSCEV(0, AR->getType()),
|
CollectSubexprs(SE.getAddRecExpr(SE.getIntegerSCEV(0, AR->getType()),
|
||||||
AR->getStepRecurrence(SE),
|
AR->getStepRecurrence(SE),
|
||||||
AR->getLoop()), C, Ops, SE);
|
AR->getLoop()), C, Ops, SE);
|
||||||
CollectSubexprs(AR->getStart(), C, Ops, SE);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(S)) {
|
} else if (const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(S)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user