ΒΆvoid RecursivelyDeleteTriviallyDeadInstructions(
SmallVectorImpl<llvm::Instruction*>&
DeadInsts,
const llvm::TargetLibraryInfo* TLI = nullptr,
llvm::MemorySSAUpdater* MSSAU = nullptr)
void RecursivelyDeleteTriviallyDeadInstructions(
SmallVectorImpl<llvm::Instruction*>&
DeadInsts,
const llvm::TargetLibraryInfo* TLI = nullptr,
llvm::MemorySSAUpdater* MSSAU = nullptr)
Description
Delete all of the instructions in `DeadInsts`, and all other instructions that deleting these in turn causes to be trivially dead. The initial instructions in the provided vector must all have empty use lists and satisfy `isInstructionTriviallyDead`. `DeadInsts` will be used as scratch storage for this routine and will be empty afterward.
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:155
Parameters
- SmallVectorImpl<llvm::Instruction*>& DeadInsts
- const llvm::TargetLibraryInfo* TLI = nullptr
- llvm::MemorySSAUpdater* MSSAU = nullptr