Erase a single dead instruction, optionally notifying a debug observer.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
void
eraseInstr(
MachineInstr& MI,
MachineRegisterInfo& MRI,
LostDebugLocObserver* LocObserver = nullptr);
| Name | Description |
|---|---|
| MI | Instruction to erase. |
| MRI | Register information for the function. |
| LocObserver | Optional observer for lost debug locations. |