[PATCH] D66659: [DAGCombiner] Add node to the worklist in topological order in parallelizeChainedStores
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 06:30:12 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf28dee2cff86: [DAGCombiner] Add node to the worklist in topological order in… (authored by Amaury Sechet <deadalnix at gmail.com>).
Herald added a subscriber: hiraditya.
Changed prior to commit:
https://reviews.llvm.org/D66659?vs=216922&id=217387#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66659/new/
https://reviews.llvm.org/D66659
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -20707,11 +20707,11 @@
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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66659.217387.patch
Type: text/x-patch
Size: 700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/4096bd27/attachment.bin>
More information about the llvm-commits
mailing list