[PATCH] D66659: [DAGCombiner] Add node to the worklist in topological order in parallelizeChainedStores
Amaury SECHET via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 12:29:32 PDT 2019
deadalnix updated this revision to Diff 216922.
deadalnix added a comment.
Fix outdated comment
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66659/new/
https://reviews.llvm.org/D66659
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Index: lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -20662,11 +20662,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.216922.patch
Type: text/x-patch
Size: 685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190823/c0ec227c/attachment.bin>
More information about the llvm-commits
mailing list