mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[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
c4d64c875c
commit
c3ed6690cd
@ -20707,11 +20707,11 @@ bool DAGCombiner::parallelizeChainedStores(StoreSDNode *St) {
|
||||
SDValue TF = DAG.getTokenFactor(SDLoc(STChain), TFOps);
|
||||
CombineTo(St, TF);
|
||||
|
||||
AddToWorklist(STChain);
|
||||
// Add TF operands worklist in reverse order.
|
||||
for (auto I = TF->getNumOperands(); I;)
|
||||
AddToWorklist(TF->getOperand(--I).getNode());
|
||||
// Add TF and its operands to the worklist.
|
||||
AddToWorklist(TF.getNode());
|
||||
for (const SDValue &Op : TF->ops())
|
||||
AddToWorklist(Op.getNode());
|
||||
AddToWorklist(STChain);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user