Lines Matching refs:BFI

297   BFI = BFI_;  in runImpl()
2269 auto *BFI = getOrCreateBFI(HasProfile); in threadThroughTwoBasicBlocks() local
2270 auto *BPI = getOrCreateBPI(BFI != nullptr); in threadThroughTwoBasicBlocks()
2281 if (BFI) { in threadThroughTwoBasicBlocks()
2283 auto NewBBFreq = BFI->getBlockFreq(PredPredBB) * in threadThroughTwoBasicBlocks()
2285 BFI->setBlockFreq(NewBB, NewBBFreq); in threadThroughTwoBasicBlocks()
2382 auto *BFI = getOrCreateBFI(HasProfile); in threadEdge() local
2383 auto *BPI = getOrCreateBPI(BFI != nullptr); in threadEdge()
2408 if (BFI) { in threadEdge()
2411 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in threadEdge()
2412 BFI->setBlockFreq(NewBB, NewBBFreq); in threadEdge()
2452 updateBlockFreqAndEdgeWeight(PredBB, BB, NewBB, SuccBB, BFI, BPI, HasProfile); in threadEdge()
2469 auto *BFI = getBFI(); in splitBlockPreds() local
2470 if (BFI) { in splitBlockPreds()
2474 Pred, BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, BB))); in splitBlockPreds()
2494 if (BFI) // Update frequencies between Pred -> NewBB. in splitBlockPreds()
2497 if (BFI) // Apply the summed frequency to NewBB. in splitBlockPreds()
2498 BFI->setBlockFreq(NewBB, NewBBFreq); in splitBlockPreds()
2520 BlockFrequencyInfo *BFI, in updateBlockFreqAndEdgeWeight() argument
2523 assert(((BFI && BPI) || (!BFI && !BFI)) && in updateBlockFreqAndEdgeWeight()
2526 if (!BFI) { in updateBlockFreqAndEdgeWeight()
2534 auto BBOrigFreq = BFI->getBlockFreq(BB); in updateBlockFreqAndEdgeWeight()
2535 auto NewBBFreq = BFI->getBlockFreq(NewBB); in updateBlockFreqAndEdgeWeight()
2538 BFI->setBlockFreq(BB, BBNewFreq); in updateBlockFreqAndEdgeWeight()
2793 if (auto *BFI = getBFI()) { in unfoldSelectInstr() local
2800 auto NewBBFreq = BFI->getBlockFreq(Pred) * PredToNewBBProb; in unfoldSelectInstr()
2801 BFI->setBlockFreq(NewBB, NewBBFreq); in unfoldSelectInstr()
3183 if (!BFI) { in getBFI()
3185 BFI = FAM->getCachedResult<BlockFrequencyAnalysis>(*F); in getBFI()
3187 return *BFI; in getBFI()
3210 BFI = runExternalAnalysis<BlockFrequencyAnalysis>(); in getOrCreateBFI()
3212 return *BFI; in getOrCreateBFI()