[PATCH] D130447: [DAG] Use recursivelyDeleteUnusedNodes in PromoteLoad
Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 28 05:55:00 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG474a8ee03d08: [DAG] Use recursivelyDeleteUnusedNodes in PromoteLoad (authored by Amaury Séchet <deadalnix at gmail.com>).
Changed prior to commit:
https://reviews.llvm.org/D130447?vs=447167&id=448317#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130447/new/
https://reviews.llvm.org/D130447
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1523,13 +1523,15 @@
LLVM_DEBUG(dbgs() << "\nPromoting "; N->dump(&DAG); dbgs() << "\nTo: ";
Result.dump(&DAG); dbgs() << '\n');
- WorklistRemover DeadNodes(*this);
+
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 0), Result);
DAG.ReplaceAllUsesOfValueWith(SDValue(N, 1), NewLD.getValue(1));
- deleteAndRecombine(N);
+
AddToWorklist(Result.getNode());
+ recursivelyDeleteUnusedNodes(N);
return true;
}
+
return false;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130447.448317.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220728/2a2695ae/attachment.bin>
More information about the llvm-commits
mailing list