ΒΆvoid DetatchDeadBlocks(
    ArrayRef<llvm::BasicBlock*> BBs,
    SmallVectorImpl<DominatorTree::UpdateType>*
        Updates,
    bool KeepOneInputPHIs = false)

Description

Replace contents of every block in \p BBs with single unreachable instruction. If \p Updates is specified, collect all necessary DT updates into this vector. 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:47

Parameters

ArrayRef<llvm::BasicBlock*> BBs
SmallVectorImpl<DominatorTree::UpdateType>* Updates
bool KeepOneInputPHIs = false