Lines Matching refs:ThenBB
216 bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB,
1910 /// br i1 %cmp, label %EndBB, label %ThenBB
1911 /// ThenBB:
1980 /// br i1 %cmp, label %EndBB, label %ThenBB
1981 /// ThenBB:
1985 /// %phi = phi [ %sub, %ThenBB ], [ 0, %EndBB ]
1999 bool SimplifyCFGOpt::SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB,
2007 BasicBlock *EndBB = ThenBB->getTerminator()->getSuccessor(0);
2009 // If ThenBB is actually on the false edge of the conditional branch, remember
2012 if (ThenBB != BI->getSuccessor(0)) {
2013 assert(ThenBB == BI->getSuccessor(1) && "No edge from 'if' block?");
2018 // Keep a count of how many times instructions are used within ThenBB when
2019 // they are candidates for sinking into ThenBB. Specifically:
2022 // - All of their uses are in ThenBB.
2030 for (BasicBlock::iterator BBI = ThenBB->begin(),
2031 BBE = std::prev(ThenBB->end());
2049 I, BB, ThenBB, EndBB))))
2072 // Consider any sink candidates which are only used in ThenBB as costs for
2089 Value *ThenV = PN.getIncomingValueForBlock(ThenBB);
2132 LLVM_DEBUG(dbgs() << "SPECULATIVELY EXECUTING BB" << *ThenBB << "\n";);
2152 for (auto &I : *ThenBB) {
2159 BB->getInstList().splice(BI->getIterator(), ThenBB->getInstList(),
2160 ThenBB->begin(), std::prev(ThenBB->end()));
2166 unsigned ThenI = PN.getBasicBlockIndex(ThenBB);