Home
last modified time | relevance | path

Searched refs:DstBB (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/bolt/lib/Passes/
H A DReorderAlgorithm.cpp167 const BinaryBasicBlock *DstBB = E.Dst; in clusterBasicBlocks() local
172 if (SrcBB == DstBB || DstBB == *BF.getLayout().block_begin()) { in clusterBasicBlocks()
178 int J = BBToClusterMap[DstBB]; in clusterBasicBlocks()
265 const BinaryBasicBlock *DstBB = E.Dst; in calculateWeight() local
280 SuccBB != DstBB) in calculateWeight()
290 if (PredBB == DstBB || PredBB == SrcBB) in calculateWeight()
294 if (SuccBB == DstBB) in calculateWeight()
340 const BinaryBasicBlock *DstBB = E.Dst; in adjustQueue() local
344 if (SrcBB == DstBB || DstBB == *BF.getLayout().block_begin()) { in adjustQueue()
351 int J = BBToClusterMap[DstBB]; in adjustQueue()
[all …]
H A DCacheMetrics.cpp73 for (BinaryBasicBlock *DstBB : SrcBB.successors()) { in calcTSPScore()
74 if (&SrcBB != DstBB && in calcTSPScore()
76 BBAddr.at(&SrcBB) + BBSize.at(&SrcBB) == BBAddr.at(DstBB)) in calcTSPScore()
98 for (BinaryBasicBlock *DstBB : SrcBB.successors()) { in calcExtTSPScore()
99 if (DstBB != &SrcBB) in calcExtTSPScore()
102 BBAddr.at(DstBB), BI->Count); in calcExtTSPScore()
H A DTailDuplication.cpp438 for (BinaryBasicBlock *DstBB : SrcBB->successors()) { in cacheScoreImproved()
439 if (SrcBB != DstBB) { in cacheScoreImproved()
440 CurScore += cacheScore(CurAddr[SrcBB], BBSize[SrcBB], CurAddr[DstBB], in cacheScoreImproved()
441 BBSize[DstBB], BI->Count); in cacheScoreImproved()
451 for (BinaryBasicBlock *DstBB : SrcBB->successors()) { in cacheScoreImproved()
452 if (SrcBB != DstBB) { in cacheScoreImproved()
453 if (SrcBB == Pred && DstBB == Tail) { in cacheScoreImproved()
455 NewAddr[SrcBB] + BBSize[SrcBB], BBSize[DstBB], in cacheScoreImproved()
458 NewScore += cacheScore(NewAddr[SrcBB], BBSize[SrcBB], NewAddr[DstBB], in cacheScoreImproved()
459 BBSize[DstBB], BI->Count); in cacheScoreImproved()
H A DExtTSPReorderAlgorithm.cpp653 BinaryBasicBlock *DstBB = *Itr; in mergeColdChains() local
655 size_t DstIndex = DstBB->getLayoutIndex(); in mergeColdChains()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h1525 for (const BlockT *DstBB : children<const BlockT *>(SrcBB)) {
1526 auto EP = BPI->getEdgeProbability(SrcBB, DstBB);
1529 if (Reachable.insert(DstBB).second)
1530 Queue.push(DstBB);
1549 for (const BlockT *DstBB : children<Inverse<const BlockT *>>(SrcBB)) {
1550 auto EP = BPI->getEdgeProbability(DstBB, SrcBB);
1553 if (InverseReachable.insert(DstBB).second)
1554 Queue.push(DstBB);
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCodeLayout.cpp645 auto DstBB = SuccNodes[SrcBB][NumSuccs - Idx - 1]; in mergeColdChains() local
647 auto DstChain = AllBlocks[DstBB].CurChain; in mergeColdChains()
650 DstChain->blocks().front()->Index == DstBB) { in mergeColdChains()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp685 for (const BasicBlock *DstBB : Successors) { in getMaxEstimatedEdgeWeight() local
686 const LoopBlock DstLoopBB = getLoopBlock(DstBB); in getMaxEstimatedEdgeWeight()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp673 const BasicBlock *DstBB = Dst->getBasicBlock(); in getEdgeProbability() local
680 return FuncInfo.BPI->getEdgeProbability(SrcBB, DstBB); in getEdgeProbability()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2122 const BasicBlock *DstBB = Dst->getBasicBlock(); in getEdgeProbability() local
2129 return BPI->getEdgeProbability(SrcBB, DstBB); in getEdgeProbability()