[PATCH] D66702: [DAGCombiner] Add node to the worklist in topological order after relegalization.

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 04:11:31 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL370040: [DAGCombiner] Add node to the worklist in topological order after… (authored by deadalnix, committed by ).

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66702/new/

https://reviews.llvm.org/D66702

Files:
  llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp


Index: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1664,8 +1664,8 @@
       bool NIsValid = DAG.LegalizeOp(N, UpdatedNodes);
 
       for (SDNode *LN : UpdatedNodes) {
-        AddToWorklist(LN);
         AddUsersToWorklist(LN);
+        AddToWorklist(LN);
       }
       if (!NIsValid)
         continue;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66702.217360.patch
Type: text/x-patch
Size: 499 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/2ebb9918/attachment.bin>


More information about the llvm-commits mailing list