[SelectionDAG] Properly copy ExtraInfo on RAUW
authorMarco Elver <elver@google.com>
Tue, 6 Sep 2022 13:48:58 +0000 (15:48 +0200)
committerMarco Elver <elver@google.com>
Tue, 6 Sep 2022 14:32:50 +0000 (16:32 +0200)
commit7d63983c65f9ad8439fc51ac70fc9cd215a94cff
treef8e204cf414d3c03d017ce922154e4a1eb4c5796
parentcc3faf422694201bc89bcfefa58722402f26b63d
[SelectionDAG] Properly copy ExtraInfo on RAUW

During SelectionDAG legalization SDNodes with associated extra info may
be replaced with a new SDNode. Preserve associated extra info on
ReplaceAllUsesWith and remove entries in DeallocateNode.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D130881
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp