forked from OSchip/llvm-project
[DAGCombiner] Add node to the worklist in topological order in parallelizeChainedStores
Summary: As per title. Reviewers: craig.topper, efriedma, RKSimon, lebedev.ri Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66659 llvm-svn: 370056
This commit is contained in:
parent
8912e2af39
commit
f28dee2cff
|
@ -20707,11 +20707,11 @@ bool DAGCombiner::parallelizeChainedStores(StoreSDNode *St) {
|
||||||
SDValue TF = DAG.getTokenFactor(SDLoc(STChain), TFOps);
|
SDValue TF = DAG.getTokenFactor(SDLoc(STChain), TFOps);
|
||||||
CombineTo(St, TF);
|
CombineTo(St, TF);
|
||||||
|
|
||||||
AddToWorklist(STChain);
|
// Add TF and its operands to the worklist.
|
||||||
// Add TF operands worklist in reverse order.
|
|
||||||
for (auto I = TF->getNumOperands(); I;)
|
|
||||||
AddToWorklist(TF->getOperand(--I).getNode());
|
|
||||||
AddToWorklist(TF.getNode());
|
AddToWorklist(TF.getNode());
|
||||||
|
for (const SDValue &Op : TF->ops())
|
||||||
|
AddToWorklist(Op.getNode());
|
||||||
|
AddToWorklist(STChain);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue