llvm-project
c5432d31 - [SandboxIR][Tracker] Track eraseFromParent() (#99431)

Commit
1 year ago
[SandboxIR][Tracker] Track eraseFromParent() (#99431) This patch adds tracking support for Instruction::eraseFromParent(). The Instruction is not actually being erased, but instead it is detached from the instruction list and drops its Use edges. The original instruction position and Use edges are saved in the `EraseFromParent` change object, and are being used during `revert()` to restore the original state.
Author
vporpo
Parents
Loading