ΒΆbool RecursivelyDeleteDeadPHINode(
    llvm::PHINode* PN,
    const llvm::TargetLibraryInfo* TLI = nullptr)

Description

If the specified value is an effectively dead PHI node, due to being a def-use chain of single-use nodes that either forms a cycle or is terminated by a trivially dead instruction, delete it. If that makes any of its operands trivially dead, delete them too, recursively. Return true if a change was made.

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

Parameters

llvm::PHINode* PN
const llvm::TargetLibraryInfo* TLI = nullptr