mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 06:27:16 +00:00
Revert "Reverse the order for collecting the parts of an addrec. The order", it
is breaking llvm-gcc bootstrap. llvm-svn: 95988
This commit is contained in:
parent
c66de6687b
commit
43ad3dfe00
@ -1902,10 +1902,10 @@ static void CollectSubexprs(const SCEV *S, const SCEVConstant *C,
|
||||
} else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
|
||||
// Split a non-zero base out of an addrec.
|
||||
if (!AR->getStart()->isZero()) {
|
||||
CollectSubexprs(AR->getStart(), C, Ops, SE);
|
||||
CollectSubexprs(SE.getAddRecExpr(SE.getIntegerSCEV(0, AR->getType()),
|
||||
AR->getStepRecurrence(SE),
|
||||
AR->getLoop()), C, Ops, SE);
|
||||
CollectSubexprs(AR->getStart(), C, Ops, SE);
|
||||
return;
|
||||
}
|
||||
} else if (const SCEVMulExpr *Mul = dyn_cast<SCEVMulExpr>(S)) {
|
||||
|
Loading…
Reference in New Issue
Block a user