1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[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
This commit is contained in:
Amaury Sechet 2019-08-27 11:06:09 +00:00
parent 44990dcd5e
commit ce4d0b3ebe

View File

@ -1664,8 +1664,8 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
bool NIsValid = DAG.LegalizeOp(N, UpdatedNodes);
for (SDNode *LN : UpdatedNodes) {
AddToWorklist(LN);
AddUsersToWorklist(LN);
AddToWorklist(LN);
}
if (!NIsValid)
continue;