[PATCH] D66661: [DAGCombiner] Add node to the worklist in topological order in scalarizeExtractedVectorLoad

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 07:23:42 PDT 2019


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

Repository:
  rL LLVM

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

https://reviews.llvm.org/D66661

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
@@ -16845,12 +16845,12 @@
   SDValue From[] = { SDValue(EVE, 0), SDValue(OriginalLoad, 1) };
   SDValue To[] = { Load, Chain };
   DAG.ReplaceAllUsesOfValuesWith(From, To, 2);
+  // Make sure to revisit this node to clean it up; it will usually be dead.
+  AddToWorklist(EVE);
   // Since we're explicitly calling ReplaceAllUses, add the new node to the
   // worklist explicitly as well.
-  AddToWorklist(Load.getNode());
   AddUsersToWorklist(Load.getNode()); // Add users too
-  // Make sure to revisit this node to clean it up; it will usually be dead.
-  AddToWorklist(EVE);
+  AddToWorklist(Load.getNode());
   ++OpsNarrowed;
   return SDValue(EVE, 0);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66661.220863.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190919/effe3aad/attachment.bin>


More information about the llvm-commits mailing list