Home
last modified time | relevance | path

Searched refs:getEdgeProbability (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBranchProbabilityInfo.cpp82 BranchProbability MachineBranchProbabilityInfo::getEdgeProbability( in getEdgeProbability() function in MachineBranchProbabilityInfo
88 BranchProbability MachineBranchProbabilityInfo::getEdgeProbability( in getEdgeProbability() function in MachineBranchProbabilityInfo
92 return getEdgeProbability(Src, find(Src->successors(), Dst)); in getEdgeProbability()
98 return getEdgeProbability(Src, Dst) > HotProb; in isEdgeHot()
105 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
H A DMachineBlockPlacement.cpp743 AdjustedSumProb -= MBPI->getEdgeProbability(BB, Succ); in collectViableSuccessors()
846 BranchProbability PProb = MBPI->getEdgeProbability(BB, Succ); in isProfitableToTailDup()
860 auto Prob = MBPI->getEdgeProbability(Succ, SuccSucc); in isProfitableToTailDup()
878 * MBPI->getEdgeProbability(SuccPred, Succ); in isProfitableToTailDup()
913 BranchProbability UProb = MBPI->getEdgeProbability(Succ, PDom); in isProfitableToTailDup()
1091 MBPI->getEdgeProbability(SuccPred, Succ); in getBestTrellisSuccessor()
1120 isProfitableToTailDup(BB, Succ2, MBPI->getEdgeProbability(BB, Succ1), in getBestTrellisSuccessor()
1123 MBPI->getEdgeProbability(BB, Succ2), AdjustedSumProb); in getBestTrellisSuccessor()
1138 MBPI->getEdgeProbability(BB, TrellisSucc), AdjustedSumProb); in getBestTrellisSuccessor()
1314 if (MBPI->getEdgeProbability(&BB, PDom) < BranchProbability(50, 100)) in precomputeTriangleChains()
[all …]
H A DIfConversion.cpp1290 BranchProbability Prediction = MBPI->getEdgeProbability(BB, TrueBBI.BB); in AnalyzeBlock()
1662 CvtNext = MBPI->getEdgeProbability(&CvtMBB, &NextMBB); in IfConvertTriangle()
1663 CvtFalse = MBPI->getEdgeProbability(&CvtMBB, CvtBBI->FalseBB); in IfConvertTriangle()
1664 BBNext = MBPI->getEdgeProbability(BBI.BB, &NextMBB); in IfConvertTriangle()
1665 BBCvt = MBPI->getEdgeProbability(BBI.BB, &CvtMBB); in IfConvertTriangle()
2268 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, &FromMBB); in MergeBlocks()
2285 NewProb = MBPI->getEdgeProbability(&FromMBB, Succ); in MergeBlocks()
2324 MBPI->getEdgeProbability(ToBBI.BB, Succ) + NewProb); in MergeBlocks()
H A DMachineBlockFrequencyInfo.cpp302 MBPI.getEdgeProbability(&NewPredecessor, &NewSuccessor); in onEdgeSplit()
H A DMIRSampleProfile.cpp250 BranchProbability OldProb = BFI->getMBPI()->getEdgeProbability(BB, SI); in setBranchProbs()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineBranchProbabilityInfo.h37 BranchProbability getEdgeProbability(const MachineBasicBlock *Src,
43 getEdgeProbability(const MachineBasicBlock *Src,
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBranchProbabilityInfo.h158 BranchProbability getEdgeProbability(const BasicBlock *Src,
164 BranchProbability getEdgeProbability(const BasicBlock *Src,
167 BranchProbability getEdgeProbability(const BasicBlock *Src,
H A DBlockFrequencyInfoImpl.h1519 auto EP = BPI->getEdgeProbability(SrcBB, DstBB);
1542 auto EP = BPI->getEdgeProbability(DstBB, SrcBB);
1580 auto EP = BPI->getEdgeProbability(BB, SI);
1704 getWeightFromBranchProb(BPI->getEdgeProbability(BB, SI))))
1884 BranchProbability BP = BPI->getEdgeProbability(Node, EI);
H A DCFGPrinter.h271 auto BranchProb = CFGInfo->getBPI()->getEdgeProbability(Node, SuccBB);
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ConditionalCompares.cpp578 BranchProbability Head2CmpBB = MBPI->getEdgeProbability(Head, CmpBB); in convert()
579 BranchProbability CmpBB2Tail = MBPI->getEdgeProbability(CmpBB, Tail); in convert()
594 BranchProbability Head2Tail = MBPI->getEdgeProbability(Head, Tail); in convert()
604 BranchProbability CmpBB2I = MBPI->getEdgeProbability(CmpBB, *I); in convert()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp509 (MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) < JumpProb || in isProfitable()
510 MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) > Prob)) in isProfitable()
514 (MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) < JumpProb || in isProfitable()
515 MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) > Prob)) in isProfitable()
521 if (MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) > Prob) in isProfitable()
523 if (MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) > Prob) in isProfitable()
H A DHexagonLoopAlign.cpp157 BranchProbability BrProb = MBPI->getEdgeProbability(&MBB, &MBB); in attemptToBalignSmallLoop()
H A DHexagonNewValueJump.cpp342 MBPI->getEdgeProbability(Src, jmpTarget); in getNewValueJumpOpcode()
H A DHexagonInstrInfo.cpp3779 auto getEdgeProbability = [MBPI] (const MachineBasicBlock *Src, in getDotNewPredJumpOp() local
3782 return MBPI->getEdgeProbability(Src, Dst); in getDotNewPredJumpOp()
3788 Taken = getEdgeProbability(Src, Dst) >= OneHalf; in getDotNewPredJumpOp()
3825 Taken = getEdgeProbability(Src, SB) < OneHalf; in getDotNewPredJumpOp()
3838 Taken = BT && getEdgeProbability(Src, BT) < OneHalf; in getDotNewPredJumpOp()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp1087 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot()
1095 BranchProbabilityInfo::getEdgeProbability(const BasicBlock *Src, in getEdgeProbability() function in BranchProbabilityInfo
1110 BranchProbabilityInfo::getEdgeProbability(const BasicBlock *Src, in getEdgeProbability() function in BranchProbabilityInfo
1112 return getEdgeProbability(Src, Dst.getSuccessorIndex()); in getEdgeProbability()
1118 BranchProbabilityInfo::getEdgeProbability(const BasicBlock *Src, in getEdgeProbability() function in BranchProbabilityInfo
1190 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp379 EdgeProbabilities.emplace_back(BPI->getEdgeProbability(Target, I)); in SplitIndirectBrCriticalEdges()
408 BPI->getEdgeProbability(Src, DirectSucc); in SplitIndirectBrCriticalEdges()
H A DCodeExtractor.cpp1736 BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, header); in extractCodeRegion()
1766 BF += BFI->getBlockFreq(Block) * BPI->getEdgeProbability(Block, Succ); in extractCodeRegion()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DCFGMST.h156 Weight = BPI->getEdgeProbability(&BB, TargetBB).scale(scaleFactor); in buildEdges()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCReduceCRLogicals.cpp186 ProbToNewTarget = BSI.MBPI->getEdgeProbability(ThisMBB, OrigFallThrough) / 2; in splitMBB()
191 ProbToNewTarget = BSI.MBPI->getEdgeProbability(ThisMBB, OrigTarget) / 2; in splitMBB()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp879 return Prob.getEdgeProbability(&B, Dst0) < in selectSuccBB()
880 Prob.getEdgeProbability(&B, Dst1); in selectSuccBB()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp631 getEdgeProbability(&CurMBB, Succ0MBB), in translateBr()
632 getEdgeProbability(&CurMBB, Succ1MBB), in translateBr()
673 Prob = getEdgeProbability(Src, Dst); in addSuccessorWithProb()
678 IRTranslator::getEdgeProbability(const MachineBasicBlock *Src, in getEdgeProbability() function in IRTranslator
688 return FuncInfo.BPI->getEdgeProbability(SrcBB, DstBB); in getEdgeProbability()
703 BPI ? BPI->getEdgeProbability(SI.getParent(), I.getSuccessorIndex()) in translateSwitch()
750 auto DefaultProb = getEdgeProbability(SwitchMBB, DefaultMBB); in translateSwitch()
2869 Prob *= BPI->getEdgeProbability(EHPadBB, NewEHPadBB); in findUnwindDestinations()
2936 BPI ? BPI->getEdgeProbability(InvokeMBB->getBasicBlock(), EHPadBB) in translateInvoke()
H A DRegBankSelect.cpp966 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp2284 BPI->getEdgeProbability(PredPredBB, PredBB); in threadThroughTwoBasicBlocks()
2411 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in threadEdge()
2474 Pred, BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, BB))); in splitBlockPreds()
2536 auto BB2SuccBBFreq = BBOrigFreq * BPI->getEdgeProbability(BB, SuccBB); in updateBlockFreqAndEdgeWeight()
2546 : BBOrigFreq * BPI->getEdgeProbability(BB, Succ); in updateBlockFreqAndEdgeWeight()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DIRTranslator.h770 BranchProbability getEdgeProbability(const MachineBasicBlock *Src,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h515 BranchProbability getEdgeProbability(const MachineBasicBlock *Src,

12