Lines Matching refs:BestPred
2034 MachineBasicBlock *BestPred = nullptr; in FallThroughGains() local
2045 BestPred = Pred; in FallThroughGains()
2053 if (BestPred) { in FallThroughGains()
2054 for (MachineBasicBlock *Succ : BestPred->successors()) { in FallThroughGains()
2055 if ((Succ == NewTop) || (Succ == BestPred) || !LoopBlockSet.count(Succ)) in FallThroughGains()
2061 (SuccChain == BlockToChain[BestPred])) in FallThroughGains()
2063 BlockFrequency EdgeFreq = MBFI->getBlockFreq(BestPred) * in FallThroughGains()
2064 MBPI->getEdgeProbability(BestPred, Succ); in FallThroughGains()
2068 BlockFrequency OrigEdgeFreq = MBFI->getBlockFreq(BestPred) * in FallThroughGains()
2069 MBPI->getEdgeProbability(BestPred, NewTop); in FallThroughGains()
2128 MachineBasicBlock *BestPred = nullptr; in findBestLoopTopHelper() local
2155 BestPred = Pred; in findBestLoopTopHelper()
2161 if (!BestPred) { in findBestLoopTopHelper()
2167 while (BestPred->pred_size() == 1 && in findBestLoopTopHelper()
2168 (*BestPred->pred_begin())->succ_size() == 1 && in findBestLoopTopHelper()
2169 *BestPred->pred_begin() != L.getHeader()) in findBestLoopTopHelper()
2170 BestPred = *BestPred->pred_begin(); in findBestLoopTopHelper()
2172 LLVM_DEBUG(dbgs() << " final top: " << getBlockName(BestPred) << "\n"); in findBestLoopTopHelper()
2173 return BestPred; in findBestLoopTopHelper()