Recursively delete trivially dead instructions from a permissive worklist.
Declared in <llvm/Transforms/Utils/Local.h>
bool
RecursivelyDeleteTriviallyDeadInstructionsPermissive(
SmallVectorImpl<WeakTrackingVH>& DeadInsts,
TargetLibraryInfo const* TLI = nullptr,
MemorySSAUpdater* MSSAU = nullptr,
std::function<void(Value*)> AboutToDeleteCallback = std::function<void(Value *)>());
Same functionality as RecursivelyDeleteTriviallyDeadInstructions, but allow instructions that are not trivially dead. These will be ignored. Returns true if any changes were made, i.e. any instructions trivially dead were found and deleted.
True if any trivially dead instructions were found and deleted.
| Name | Description |
|---|---|
| DeadInsts | Worklist that may contain non-dead instructions. |
| TLI | Optional target library info used for deadness analysis. |
| MSSAU | Optional MemorySSA updater notified of deletions. |
| AboutToDeleteCallback | Optional callback invoked before each deletion. |