llvm::eraseInstr

Erase a single dead instruction, optionally notifying a debug observer.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

void
eraseInstr(
    MachineInstr& MI,
    MachineRegisterInfo& MRI,
    LostDebugLocObserver* LocObserver = nullptr);

Parameters

NameDescription
MIInstruction to erase.
MRIRegister information for the function.
LocObserverOptional observer for lost debug locations.