Lines Matching refs:BestPred
1986 MachineBasicBlock *BestPred = nullptr; in FallThroughGains() local
1997 BestPred = Pred; in FallThroughGains()
2005 if (BestPred) { in FallThroughGains()
2006 for (MachineBasicBlock *Succ : BestPred->successors()) { in FallThroughGains()
2007 if ((Succ == NewTop) || (Succ == BestPred) || !LoopBlockSet.count(Succ)) in FallThroughGains()
2013 (SuccChain == BlockToChain[BestPred])) in FallThroughGains()
2015 BlockFrequency EdgeFreq = MBFI->getBlockFreq(BestPred) * in FallThroughGains()
2016 MBPI->getEdgeProbability(BestPred, Succ); in FallThroughGains()
2020 BlockFrequency OrigEdgeFreq = MBFI->getBlockFreq(BestPred) * in FallThroughGains()
2021 MBPI->getEdgeProbability(BestPred, NewTop); in FallThroughGains()
2080 MachineBasicBlock *BestPred = nullptr; in findBestLoopTopHelper() local
2106 BestPred = Pred; in findBestLoopTopHelper()
2112 if (!BestPred) { in findBestLoopTopHelper()
2118 while (BestPred->pred_size() == 1 && in findBestLoopTopHelper()
2119 (*BestPred->pred_begin())->succ_size() == 1 && in findBestLoopTopHelper()
2120 *BestPred->pred_begin() != L.getHeader()) in findBestLoopTopHelper()
2121 BestPred = *BestPred->pred_begin(); in findBestLoopTopHelper()
2123 LLVM_DEBUG(dbgs() << " final top: " << getBlockName(BestPred) << "\n"); in findBestLoopTopHelper()
2124 return BestPred; in findBestLoopTopHelper()