Lines Matching refs:BranchProbability
471 BranchProbability
495 const BlockChain &SuccChain, BranchProbability SuccProb,
496 BranchProbability RealSuccProb, const BlockChain &Chain,
557 BranchProbability QProb,
569 BranchProbability AdjustedSumProb, const BlockChain &Chain,
707 BranchProbability MachineBlockPlacement::collectViableSuccessors( in collectViableSuccessors()
727 auto AdjustedSumProb = BranchProbability::getOne(); in collectViableSuccessors()
753 static BranchProbability
754 getAdjustedProbability(BranchProbability OrigProb, in getAdjustedProbability()
755 BranchProbability AdjustedSumProb) { in getAdjustedProbability()
756 BranchProbability SuccProb; in getAdjustedProbability()
760 SuccProb = BranchProbability::getOne(); in getAdjustedProbability()
762 SuccProb = BranchProbability(SuccProbN, SuccProbD); in getAdjustedProbability()
804 BranchProbability ThresholdProb(TailDupPlacementPenalty, 100); in greaterWithBias()
816 BranchProbability QProb, in isProfitableToTailDup()
846 BranchProbability PProb = MBPI->getEdgeProbability(BB, Succ); in isProfitableToTailDup()
857 auto BestSuccSucc = BranchProbability::getZero(); in isProfitableToTailDup()
904 BranchProbability UProb = BestSuccSucc; in isProfitableToTailDup()
905 BranchProbability VProb = AdjustedSuccSumProb - UProb; in isProfitableToTailDup()
913 BranchProbability UProb = MBPI->getEdgeProbability(Succ, PDom); in isProfitableToTailDup()
914 BranchProbability VProb = AdjustedSuccSumProb - UProb; in isProfitableToTailDup()
1066 BranchProbability AdjustedSumProb, const BlockChain &Chain, in getBestTrellisSuccessor()
1122 LLVM_DEBUG(BranchProbability Succ2Prob = getAdjustedProbability( in getBestTrellisSuccessor()
1137 LLVM_DEBUG(BranchProbability SuccProb = getAdjustedProbability( in getBestTrellisSuccessor()
1314 if (MBPI->getEdgeProbability(&BB, PDom) < BranchProbability(50, 100)) in precomputeTriangleChains()
1383 static BranchProbability getLayoutSuccessorProbThreshold( in getLayoutSuccessorProbThreshold()
1386 return BranchProbability(StaticLikelyProb, 100); in getLayoutSuccessorProbThreshold()
1401 return BranchProbability(2 * ProfileLikelyProb, 150); in getLayoutSuccessorProbThreshold()
1404 return BranchProbability(ProfileLikelyProb, 100); in getLayoutSuccessorProbThreshold()
1417 const BlockChain &SuccChain, BranchProbability SuccProb, in hasBetterLayoutPredecessor()
1418 BranchProbability RealSuccProb, const BlockChain &Chain, in hasBetterLayoutPredecessor()
1538 BranchProbability HotProb = getLayoutSuccessorProbThreshold(BB); in hasBetterLayoutPredecessor()
1599 const BranchProbability HotProb(StaticLikelyProb, 100); in selectBestSuccessor()
1602 auto BestProb = BranchProbability::getZero(); in selectBestSuccessor()
1632 SmallVector<std::pair<BranchProbability, MachineBasicBlock *>, 4> in selectBestSuccessor()
1636 BranchProbability SuccProb = in selectBestSuccessor()
1671 [](std::tuple<BranchProbability, MachineBasicBlock *> L, in selectBestSuccessor()
1672 std::tuple<BranchProbability, MachineBasicBlock *> R) { in selectBestSuccessor() argument
1676 BranchProbability DupProb; in selectBestSuccessor()
2288 BranchProbability Bias(100 - ExitBlockBias, 100); in findBestLoopExit()
2476 return Freq / BranchProbability(1, Scale); in rotateLoopWithProfile()
2504 auto LargestExitEdgeProb = BranchProbability::getZero(); in rotateLoopWithProfile()
2513 if (LargestExitEdgeProb > BranchProbability::getZero()) { in rotateLoopWithProfile()
2568 auto ColderEdgeFreq = TailToHeadProb > BranchProbability(1, 2) in rotateLoopWithProfile()
2943 const BranchProbability ColdProb(1, 5); // 20% in alignBlocks()
3029 BranchProbability LayoutProb = in alignBlocks()
3255 BranchProbability BestProb = BranchProbability::getZero(); in isBestSuccessor()
3263 BranchProbability SuccProb = MBPI->getEdgeProbability(Pred, Succ); in isBestSuccessor()
3268 BranchProbability BBProb = MBPI->getEdgeProbability(Pred, BB); in isBestSuccessor()
3286 BranchProbability DefaultBranchProb = BranchProbability::getZero(); in findDuplicateCandidates()
3414 BranchProbability ThresholdProb(TailDupPlacementPenalty, 100); in initDupThreshold()