[llvm] [SDag] Notify listeners when deleting a node (PR #66991)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 16:25:06 PDT 2024


topperc wrote:

> SelectionDAG::DeleteNode does not notify listeners about node deletion. As a result, SelectionDAG::Legalize may skip legalization of some nodes resulting in "Legalized selection DAG" containing illegal nodes.

Is this because a new node gets allocated in the same memory that `LegalizedNodes` is still pointing at?

https://github.com/llvm/llvm-project/pull/66991


More information about the llvm-commits mailing list