ΒΆbool FoldBranchToCommonDest(
    llvm::BranchInst* BI,
    llvm::DomTreeUpdater* DTU = nullptr,
    llvm::MemorySSAUpdater* MSSAU = nullptr,
    const llvm::TargetTransformInfo* TTI =
        nullptr,
    unsigned int BonusInstThreshold = 1)
bool FoldBranchToCommonDest(
    llvm::BranchInst* BI,
    llvm::DomTreeUpdater* DTU = nullptr,
    llvm::MemorySSAUpdater* MSSAU = nullptr,
    const llvm::TargetTransformInfo* TTI =
        nullptr,
    unsigned int BonusInstThreshold = 1)Description
If this basic block is ONLY a setcc and a branch, and if a predecessor branches to us and one of our successors, fold the setcc into the predecessor and use logical operations to pick the right destination.
Declared at: llvm/include/llvm/Transforms/Utils/Local.h:187
Parameters
- llvm::BranchInst* BI
- llvm::DomTreeUpdater* DTU = nullptr
- llvm::MemorySSAUpdater* MSSAU = nullptr
- const llvm::TargetTransformInfo* TTI = nullptr
- unsigned int BonusInstThreshold = 1