Lines Matching refs:BlockFrequency
338 BlockFrequency Weight;
386 BlockFrequency DupThreshold;
419 BlockFrequency getBlockCountOrFrequency(const MachineBasicBlock *BB) { in getBlockCountOrFrequency()
431 BlockFrequency scaleThreshold(MachineBasicBlock *BB);
497 BlockFrequency TopFallThroughFreq(const MachineBasicBlock *Top,
499 BlockFrequency FallThroughGains(const MachineBasicBlock *NewTop,
509 BlockFrequency &ExitFreq);
514 BlockFrequency ExitFreq, const BlockFilterSet &LoopBlockSet);
764 static bool greaterWithBias(BlockFrequency A, BlockFrequency B, in greaterWithBias()
767 BlockFrequency Gain = A - B; in greaterWithBias()
811 BlockFrequency P = BBFreq * PProb; in isProfitableToTailDup()
812 BlockFrequency Qout = BBFreq * QProb; in isProfitableToTailDup()
833 auto SuccBestPred = BlockFrequency(0); in isProfitableToTailDup()
845 BlockFrequency Qin = SuccBestPred; in isProfitableToTailDup()
868 BlockFrequency F = SuccFreq - Qin; in isProfitableToTailDup()
869 BlockFrequency V = SuccFreq * VProb; in isProfitableToTailDup()
870 BlockFrequency QinU = std::min(Qin, F) * UProb; in isProfitableToTailDup()
871 BlockFrequency BaseCost = P + V; in isProfitableToTailDup()
872 BlockFrequency DupCost = Qout + QinU + std::max(Qin, F) * VProb; in isProfitableToTailDup()
877 BlockFrequency U = SuccFreq * UProb; in isProfitableToTailDup()
878 BlockFrequency V = SuccFreq * VProb; in isProfitableToTailDup()
879 BlockFrequency F = SuccFreq - Qin; in isProfitableToTailDup()
1004 BlockFrequency BestAScore = BestA->Weight + SecondBestB->Weight; in getBestNonConflictingEdges()
1005 BlockFrequency BestBScore = BestB->Weight + SecondBestA->Weight; in getBestNonConflictingEdges()
1052 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1504 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
1530 BlockFrequency PredEdgeFreq = in hasBetterLayoutPredecessor()
1686 BlockFrequency BestFreq; in selectBestCandidateBlock()
1698 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
1893 BlockFrequency
1897 BlockFrequency MaxFreq = 0; in TopFallThroughFreq()
1918 BlockFrequency EdgeFreq = MBFI->getBlockFreq(Pred) * in TopFallThroughFreq()
1949 BlockFrequency
1955 BlockFrequency FallThrough2Top = TopFallThroughFreq(OldTop, LoopBlockSet); in FallThroughGains()
1956 BlockFrequency FallThrough2Exit = 0; in FallThroughGains()
1960 BlockFrequency BackEdgeFreq = MBFI->getBlockFreq(NewTop) * in FallThroughGains()
1965 BlockFrequency FallThroughFromPred = 0; in FallThroughGains()
1971 BlockFrequency EdgeFreq = MBFI->getBlockFreq(Pred) * in FallThroughGains()
1982 BlockFrequency NewFreq = 0; in FallThroughGains()
1993 BlockFrequency EdgeFreq = MBFI->getBlockFreq(BestPred) * in FallThroughGains()
1998 BlockFrequency OrigEdgeFreq = MBFI->getBlockFreq(BestPred) * in FallThroughGains()
2009 BlockFrequency Result = 0; in FallThroughGains()
2010 BlockFrequency Gains = BackEdgeFreq + NewFreq; in FallThroughGains()
2011 BlockFrequency Lost = FallThrough2Top + FallThrough2Exit + in FallThroughGains()
2055 BlockFrequency BestGains = 0; in findBestLoopTopHelper()
2078 BlockFrequency Gains = FallThroughGains(Pred, OldTop, OtherBB, in findBestLoopTopHelper()
2141 BlockFrequency &ExitFreq) { in findBestLoopExit()
2154 BlockFrequency BestExitEdgeFreq; in findBestLoopExit()
2176 BlockFrequency OldBestExitEdgeFreq = BestExitEdgeFreq; in findBestLoopExit()
2206 BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb; in findBestLoopExit()
2297 BlockFrequency ExitFreq, in rotateLoop()
2324 BlockFrequency FallThrough2Top = TopFallThroughFreq(Top, LoopBlockSet); in rotateLoop()
2384 BlockFrequency SmallestRotationCost = BlockFrequency::getMaxFrequency(); in rotateLoopWithProfile()
2388 auto ScaleBlockFrequency = [](BlockFrequency Freq, in rotateLoopWithProfile()
2389 unsigned Scale) -> BlockFrequency { in rotateLoopWithProfile()
2400 BlockFrequency HeaderFallThroughCost(0); in rotateLoopWithProfile()
2421 SmallVector<std::pair<MachineBasicBlock *, BlockFrequency>, 4> ExitsWithFreq; in rotateLoopWithProfile()
2452 BlockFrequency Cost = 0; in rotateLoopWithProfile()
2531 BlockFrequency LoopFreq(0); in collectLoopBlockSet()
2587 BlockFrequency ExitFreq; in buildLoopChains()
2860 BlockFrequency EntryFreq = MBFI->getBlockFreq(&F->front()); in alignBlocks()
2861 BlockFrequency WeightedEntryFreq = EntryFreq * ColdProb; in alignBlocks()
2880 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in alignBlocks()
2887 BlockFrequency LoopHeaderFreq = MBFI->getBlockFreq(LoopHeader); in alignBlocks()
2914 BlockFrequency LayoutEdgeFreq = MBFI->getBlockFreq(LayoutPred) * LayoutProb; in alignBlocks()
3106 BlockFrequency MachineBlockPlacement::scaleThreshold(MachineBasicBlock *BB) { in scaleThreshold()
3142 BlockFrequency PredFreq = getBlockCountOrFrequency(Pred); in isBestSuccessor()
3143 BlockFrequency Gain = PredFreq * (BBProb - BestProb); in isBestSuccessor()
3155 BlockFrequency BBDupThreshold(scaleThreshold(BB)); in findDuplicateCandidates()
3216 BlockFrequency PredFreq = getBlockCountOrFrequency(Pred); in findDuplicateCandidates()
3229 BlockFrequency OrigCost = PredFreq + PredFreq * DefaultBranchProb; in findDuplicateCandidates()
3230 BlockFrequency DupCost; in findDuplicateCandidates()
3274 BlockFrequency MaxFreq = 0; in initDupThreshold()
3276 BlockFrequency Freq = MBFI->getBlockFreq(&MBB); in initDupThreshold()
3458 BlockFrequency BlockFreq = MBFI->getBlockFreq(&MBB); in INITIALIZE_PASS_DEPENDENCY()
3468 BlockFrequency EdgeFreq = in INITIALIZE_PASS_DEPENDENCY()