ΒΆvoid MergeBasicBlockIntoOnlyPred(
    llvm::BasicBlock* BB,
    llvm::DomTreeUpdater* DTU = nullptr)

Description

BB is a block with one predecessor and its predecessor is known to have one successor (BB!). Eliminate the edge between them, moving the instructions in the predecessor into BB. This deletes the predecessor block.

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

Parameters

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