diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2019-09-19 14:22:11 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2019-09-19 14:22:11 +0000 |
commit | 9e94ef42bab003026a433687d9f44d8137f16d17 (patch) | |
tree | a3095bc4698b87c993b3c9a4aeaacfffb34aca57 | |
parent | cde4f727fffe4ea04ae95f831ba788781d2f20eb (diff) | |
download | bcm5719-llvm-9e94ef42bab003026a433687d9f44d8137f16d17.tar.gz bcm5719-llvm-9e94ef42bab003026a433687d9f44d8137f16d17.zip |
[DAGCombiner] Add node to the worklist in topological order in scalarizeExtractedVectorLoad
Summary: As per title.
Reviewers: craig.topper, efriedma, RKSimon, lebedev.ri
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66661
llvm-svn: 372327
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 9de16e58e8c..2b47407393d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -16845,12 +16845,12 @@ SDValue DAGCombiner::scalarizeExtractedVectorLoad(SDNode *EVE, EVT InVecVT, 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); } |