RecursivelyDeleteTriviallyDeadInstructions overloads
Synopses
Declared in <llvm/Transforms/Utils/Local.h>
Recursively delete a worklist of trivially dead instructions.
void
RecursivelyDeleteTriviallyDeadInstructions(
SmallVectorImpl<WeakTrackingVH>& DeadInsts,
TargetLibraryInfo const* TLI = nullptr,
MemorySSAUpdater* MSSAU = nullptr,
std::function<void(Value*)> AboutToDeleteCallback = std::function<void(Value *)>());
Recursively delete a trivially dead instruction and its dead operands.
bool
RecursivelyDeleteTriviallyDeadInstructions(
Value* V,
TargetLibraryInfo const* TLI = nullptr,
MemorySSAUpdater* MSSAU = nullptr,
std::function<void(Value*)> AboutToDeleteCallback = std::function<void(Value *)>());
Return Value
True if any instructions were deleted.
Parameters
Name |
Description |
DeadInsts |
Worklist of trivially dead instructions to delete. |
TLI |
Optional target library info used for deadness analysis. |
MSSAU |
Optional MemorySSA updater notified of deletions. |
AboutToDeleteCallback |
Optional callback invoked before each deletion. |
V |
Value that may be a trivially dead instruction. |
Created with MrDocs