ΒΆbool FoldBranchToCommonDest(
llvm::BranchInst* BI,
llvm::MemorySSAUpdater* MSSAU = nullptr,
unsigned int BonusInstThreshold = 1)
bool FoldBranchToCommonDest(
llvm::BranchInst* BI,
llvm::MemorySSAUpdater* MSSAU = 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:234
Parameters
- llvm::BranchInst* BI
- llvm::MemorySSAUpdater* MSSAU = nullptr
- unsigned int BonusInstThreshold = 1