ΒΆbool RecursivelyDeleteTriviallyDeadInstructionsPermissive(
SmallVectorImpl<llvm::WeakTrackingVH>&
DeadInsts,
const llvm::TargetLibraryInfo* TLI = nullptr,
llvm::MemorySSAUpdater* MSSAU = nullptr,
std::function<void(Value*)>
AboutToDeleteCallback =
std::function<void(llvm::Value*)>())
bool RecursivelyDeleteTriviallyDeadInstructionsPermissive(
SmallVectorImpl<llvm::WeakTrackingVH>&
DeadInsts,
const llvm::TargetLibraryInfo* TLI = nullptr,
llvm::MemorySSAUpdater* MSSAU = nullptr,
std::function<void(Value*)>
AboutToDeleteCallback =
std::function<void(llvm::Value*)>())
Description
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.
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:117
Parameters
- SmallVectorImpl<llvm::WeakTrackingVH>& DeadInsts
- const llvm::TargetLibraryInfo* TLI = nullptr
- llvm::MemorySSAUpdater* MSSAU = nullptr
- std::function<void(Value*)> AboutToDeleteCallback = std::function<void (llvm::Value *)>()