ΒΆbool RecursivelyDeleteTriviallyDeadInstructions(
    llvm::Value* V,
    const llvm::TargetLibraryInfo* TLI = nullptr,
    llvm::MemorySSAUpdater* MSSAU = nullptr,
    std::function<void(Value*)>
        AboutToDeleteCallback =
            std::function<void(llvm::Value*)>())

Description

If the specified value is a trivially dead instruction, delete it. If that makes any of its operands trivially dead, delete them too, recursively. Return true if any instructions were deleted.

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:93

Parameters

llvm::Value* V
const llvm::TargetLibraryInfo* TLI = nullptr
llvm::MemorySSAUpdater* MSSAU = nullptr
std::function<void(Value*)> AboutToDeleteCallback = std::function<void (llvm::Value *)>()