ΒΆbool removeUnreachableBlocks(
    llvm::Function& F,
    llvm::DomTreeUpdater* DTU = nullptr,
    llvm::MemorySSAUpdater* MSSAU = nullptr)

Description

Remove all blocks that can not be reached from the function's entry. Returns true if any basic block was removed.

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

Parameters

llvm::Function& F
llvm::DomTreeUpdater* DTU = nullptr
llvm::MemorySSAUpdater* MSSAU = nullptr