ΒΆbool TryToSimplifyUncondBranchFromEmptyBlock(
    llvm::BasicBlock* BB,
    llvm::DomTreeUpdater* DTU = nullptr)

Description

BB is known to contain an unconditional branch, and contains no instructions other than PHI nodes, potential debug intrinsics and the branch. If possible, eliminate BB by rewriting all the predecessors to branch to the successor block and return true. If we can't transform, return false.

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

Parameters

llvm::BasicBlock* BB
llvm::DomTreeUpdater* DTU = nullptr