[DAG] Use recursivelyDeleteUnusedNodes in PromoteLoad
authorAmaury Séchet <deadalnix@gmail.com>
Mon, 25 Jul 2022 01:15:06 +0000 (01:15 +0000)
committerAmaury Séchet <deadalnix@gmail.com>
Thu, 28 Jul 2022 12:54:52 +0000 (12:54 +0000)
commit474a8ee03d08c93828a74a7c4026c80ec64dbf54
treefdca1536dd1d0d29a72769cdad889901b105dec0
parent50716ba2b337afe46ac256cc91673dc27356a776
[DAG] Use recursivelyDeleteUnusedNodes in PromoteLoad

It simplifies the code overall and removes the need for manual bookkeeping.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D130447
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp