ΒΆbool EliminateUnreachableBlocks(
llvm::Function& F,
llvm::DomTreeUpdater* DTU = nullptr,
bool KeepOneInputPHIs = false)
bool EliminateUnreachableBlocks(
llvm::Function& F,
llvm::DomTreeUpdater* DTU = nullptr,
bool KeepOneInputPHIs = false)
Description
Delete all basic blocks from \p F that are not reachable from its entry node. If \p KeepOneInputPHIs is true, one-input Phis in successors of blocks being deleted will be preserved.
Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:68
Parameters
- llvm::Function& F
- llvm::DomTreeUpdater* DTU = nullptr
- bool KeepOneInputPHIs = false