Skip to content

Commit a1e5ef3

Browse files
committed
[DAGCombiner] Add node to the worklist in topological order after relegalization.
Summary: As per title. Reviewers: craig.topper, efriedma, RKSimon, lebedev.ri Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66702 llvm-svn: 370040
1 parent 3d5f48d commit a1e5ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1664,8 +1664,8 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
16641664
bool NIsValid = DAG.LegalizeOp(N, UpdatedNodes);
16651665

16661666
for (SDNode *LN : UpdatedNodes) {
1667-
AddToWorklist(LN);
16681667
AddUsersToWorklist(LN);
1668+
AddToWorklist(LN);
16691669
}
16701670
if (!NIsValid)
16711671
continue;

0 commit comments

Comments
 (0)