ΒΆvoid DeleteDeadBlocks(
    ArrayRef<llvm::BasicBlock*> BBs,
    llvm::DomTreeUpdater* DTU = nullptr,
    bool KeepOneInputPHIs = false)

Description

Delete the specified blocks from \p BB. The set of deleted blocks must have no predecessors that are not being deleted themselves. \p BBs must have no duplicating blocks. If there are loops among this set of blocks, all relevant loop info updates should be done before this function is called. 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:61

Parameters

ArrayRef<llvm::BasicBlock*> BBs
llvm::DomTreeUpdater* DTU = nullptr
bool KeepOneInputPHIs = false