Delete the specified block, which must have no predecessors.

Synopsis

Declared in <llvm/Transforms/Utils/BasicBlockUtils.h>

void
DeleteDeadBlock(
    BasicBlock* BB,
    DomTreeUpdater* DTU = nullptr,
    bool KeepOneInputPHIs = false);

Parameters

Name

Description

BB

Block to delete.

DTU

Optional dominator‐tree updater for CFG changes.

KeepOneInputPHIs

Whether to preserve one‐input PHIs in successors.

Created with MrDocs