ΒΆbool MergeBlockSuccessorsIntoGivenBlocks(
    SmallPtrSetImpl<llvm::BasicBlock*>&
        MergeBlocks,
    llvm::Loop* L = nullptr,
    llvm::DomTreeUpdater* DTU = nullptr,
    llvm::LoopInfo* LI = nullptr)

Description

Merge block(s) sucessors, if possible. Return true if at least two of the blocks were merged together. In order to merge, each block must be terminated by an unconditional branch. If L is provided, then the blocks merged into their predecessors must be in L. In addition, This utility calls on another utility: MergeBlockIntoPredecessor. Blocks are successfully merged when the call to MergeBlockIntoPredecessor returns true.

Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:106

Parameters

SmallPtrSetImpl<llvm::BasicBlock*>& MergeBlocks
llvm::Loop* L = nullptr
llvm::DomTreeUpdater* DTU = nullptr
llvm::LoopInfo* LI = nullptr