Erase a list of dead instructions, optionally notifying a debug observer.

Synopsis

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

void
eraseInstrs(
    ArrayRef<MachineInstr*> DeadInstrs,
    MachineRegisterInfo& MRI,
    LostDebugLocObserver* LocObserver = nullptr);

Parameters

Name

Description

DeadInstrs

Instructions to erase.

MRI

Register information for the function.

LocObserver

Optional observer for lost debug locations.

Created with MrDocs