ΒΆbool DeleteDeadPHIs(
llvm::BasicBlock* BB,
const llvm::TargetLibraryInfo* TLI = nullptr)
bool DeleteDeadPHIs(
llvm::BasicBlock* BB,
const llvm::TargetLibraryInfo* TLI = nullptr)
Description
Examine each PHI in the given block and delete it if it is dead. Also recursively delete any operands that become dead as a result. This includes tracing the def-use list from the PHI to see if it is ultimately unused or if it reaches an unused cycle. Return true if any PHIs were deleted.
Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:82
Parameters
- llvm::BasicBlock* BB
- const llvm::TargetLibraryInfo* TLI = nullptr