Home
last modified time | relevance | path

Searched refs:MBPI (Results 1 – 23 of 23) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBlockFrequencyInfo.cpp180 MachineBranchProbabilityInfo &MBPI, in MachineBlockFrequencyInfo() argument
182 calculate(F, MBPI, MLI); in MachineBlockFrequencyInfo()
195 const MachineFunction &F, const MachineBranchProbabilityInfo &MBPI, in calculate() argument
199 MBFI->calculate(F, MBPI, MLI); in calculate()
212 MachineBranchProbabilityInfo &MBPI = in runOnMachineFunction() local
215 calculate(F, MBPI, MLI); in runOnMachineFunction()
260 const MachineBranchProbabilityInfo &MBPI) { in onEdgeSplit() argument
263 MBPI.getEdgeProbability(&NewPredecessor, &NewSuccessor); in onEdgeSplit()
H A DMachineBlockPlacement.cpp378 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anon4a3aec630111::MachineBlockPlacement
873 * MBPI->getEdgeProbability(SuccPred, Succ); in isProfitableToTailDup()
1993 MBPI->getEdgeProbability(NewTop, ExitBB); in FallThroughGains()
1995 MBPI->getEdgeProbability(NewTop, OldTop); in FallThroughGains()
2878 MBPI->getEdgeProbability(ChainBB, FBB) > in optimizeBranches()
2994 MBPI->getEdgeProbability(LayoutPred, ChainBB); in alignBlocks()
3239 return MBPI->getEdgeProbability(BB, A) > MBPI->getEdgeProbability(BB, B); in findDuplicateCandidates()
3374 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
3443 *MBFI, *MBPI, PSI, TailMergeSize); in runOnMachineFunction()
3545 auto EP = MBPI->getEdgeProbability(&MBB, Succ); in applyExtTsp()
[all …]
H A DTailDuplication.cpp87 auto MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction() local
94 Duplicator.initMF(MF, PreRegAlloc, MBPI, MBFI ? MBFIW.get() : nullptr, PSI, in runOnMachineFunction()
H A DLazyMachineBlockFrequencyInfo.cpp65 auto &MBPI = getAnalysis<MachineBranchProbabilityInfo>(); in calculateIfNotAvailable() local
90 OwnedMBFI->calculate(*MF, MBPI, *MLI); in calculateIfNotAvailable()
H A DIfConversion.cpp193 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anon4149301f0111::IfConverter
448 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in INITIALIZE_PASS_DEPENDENCY()
461 BranchFolder BF(true, false, MBFI, *MBPI, PSI); in INITIALIZE_PASS_DEPENDENCY()
598 BranchFolder BF(false, false, MBFI, *MBPI, PSI); in INITIALIZE_PASS_DEPENDENCY()
1661 CvtNext = MBPI->getEdgeProbability(&CvtMBB, &NextMBB); in IfConvertTriangle()
1662 CvtFalse = MBPI->getEdgeProbability(&CvtMBB, CvtBBI->FalseBB); in IfConvertTriangle()
1663 BBNext = MBPI->getEdgeProbability(BBI.BB, &NextMBB); in IfConvertTriangle()
1664 BBCvt = MBPI->getEdgeProbability(BBI.BB, &CvtMBB); in IfConvertTriangle()
2267 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, &FromMBB); in MergeBlocks()
2284 NewProb = MBPI->getEdgeProbability(&FromMBB, Succ); in MergeBlocks()
[all …]
H A DBranchFolding.h129 const MachineBranchProbabilityInfo &MBPI; variable
H A DTailDuplicator.cpp89 MBPI = MBPIin; in initMF()
94 assert(MBPI != nullptr && "Machine Branch Probability Info required"); in initMF()
905 PredBB->addSuccessor(Succ, MBPI->getEdgeProbability(TailBB, Succ)); in tailDuplicate()
H A DEarlyIfConversion.cpp1122 MachineBranchProbabilityInfo *MBPI = nullptr; member in __anone8860c9c0b11::EarlyIfPredicator
1163 auto TrueProbability = MBPI->getEdgeProbability(IfConv.Head, IfConv.TBB); in shouldConvertIf()
1228 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
H A DMachineSink.cpp126 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anonae6ca9140111::MachineSinking
715 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
741 MBFI->onEdgeSplit(*Pair.first, *NewSucc, *MBPI); in runOnMachineFunction()
890 if (From->isSuccessor(To) && MBPI->getEdgeProbability(From, To) <= in isWorthBreakingCriticalEdge()
H A DBranchFolding.cpp146 MBBFreqInfo(FreqInfo), MBPI(ProbInfo), PSI(PSI) { in BranchFolder()
1172 *EdgeFreq += BlockFreq * MBPI.getEdgeProbability(SrcMBB, *SuccI); in setCommonTailEdgeWeights()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineBlockFrequencyInfo.h42 MachineBranchProbabilityInfo &MBPI,
52 const MachineBranchProbabilityInfo &MBPI,
85 const MachineBranchProbabilityInfo &MBPI);
H A DTailDuplicator.h42 const MachineBranchProbabilityInfo *MBPI; variable
72 const MachineBranchProbabilityInfo *MBPI,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ConditionalCompares.cpp141 const MachineBranchProbabilityInfo *MBPI; member in __anonc9893bab0111::SSACCmpConv
190 const MachineBranchProbabilityInfo *MBPI) { in runOnMachineFunction() argument
192 this->MBPI = MBPI; in runOnMachineFunction()
578 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()
760 const MachineBranchProbabilityInfo *MBPI; member in __anonc9893bab0211::AArch64ConditionalCompares
938 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
944 CmpConv.runOnMachineFunction(MF, MBPI); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp220 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anonf9d341410111::HexagonEarlyIfConversion
508 if (MBPI && FP.TrueB && !FP.FalseB && in isProfitable()
509 (MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) < JumpProb || in isProfitable()
510 MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) > Prob)) in isProfitable()
513 if (MBPI && !FP.TrueB && FP.FalseB && in isProfitable()
514 (MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) < JumpProb || in isProfitable()
515 MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) > Prob)) in isProfitable()
520 if (MBPI) { in isProfitable()
521 if (MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) > Prob) in isProfitable()
523 if (MBPI->getEdgeProbability(FP.SplitB, FP.FalseB) > Prob) in isProfitable()
[all …]
H A DHexagonNewValueJump.cpp99 const MachineBranchProbabilityInfo *MBPI; member
338 *MBPI) { in getNewValueJumpOpcode() argument
342 MBPI->getEdgeProbability(Src, jmpTarget); in getNewValueJumpOpcode()
462 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
683 jmpTarget, MBPI); in runOnMachineFunction()
H A DHexagonVLIWPacketizer.h72 const MachineBranchProbabilityInfo *MBPI;
82 AAResults *AA, const MachineBranchProbabilityInfo *MBPI,
H A DHexagonVLIWPacketizer.cpp136 const MachineBranchProbabilityInfo *MBPI, bool Minimal) in INITIALIZE_PASS_DEPENDENCY()
137 : VLIWPacketizerList(MF, MLI, AA), MBPI(MBPI), MLI(&MLI), in INITIALIZE_PASS_DEPENDENCY()
216 auto *MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction() local
224 HexagonPacketizerList Packetizer(MF, MLI, AA, MBPI, MinOnly); in runOnMachineFunction()
463 NewOpcode = HII->getDotNewPredOp(MI, MBPI); in promoteToDotNew()
891 HII->getDotNewPredOp(MI, MBPI); in canPromoteToDotNew()
H A DHexagonInstrInfo.h453 const MachineBranchProbabilityInfo *MBPI) const;
455 const MachineBranchProbabilityInfo *MBPI) const;
H A DHexagonInstrInfo.cpp3743 const MachineBranchProbabilityInfo *MBPI) const { in getDotNewPredJumpOp()
3750 auto getEdgeProbability = [MBPI] (const MachineBasicBlock *Src, in getDotNewPredJumpOp()
3752 if (MBPI) in getDotNewPredJumpOp()
3753 return MBPI->getEdgeProbability(Src, Dst); in getDotNewPredJumpOp()
3829 const MachineBranchProbabilityInfo *MBPI) const { in getDotNewPredOp()
3834 return getDotNewPredJumpOp(MI, MBPI); in getDotNewPredOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCReduceCRLogicals.cpp114 const MachineBranchProbabilityInfo *MBPI; member
184 if (BSI.MBPI) { in splitMBB()
186 ProbToNewTarget = BSI.MBPI->getEdgeProbability(ThisMBB, OrigFallThrough) / 2; in splitMBB()
191 ProbToNewTarget = BSI.MBPI->getEdgeProbability(ThisMBB, OrigTarget) / 2; in splitMBB()
382 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anon068435a90111::PPCReduceCRLogicals
573 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in initialize()
694 InvertOrigBranch, TargetIsFallThrough, MBPI, CRI.MI, in splitBlockOnBinaryCROp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp89 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in init()
92 MBPI = nullptr; in init()
521 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
957 const MachineBranchProbabilityInfo *MBPI = in frequency() local
959 if (!MBPI) in frequency()
962 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DRegBankSelect.h502 MachineBranchProbabilityInfo *MBPI = nullptr; variable
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp1436 const MachineBranchProbabilityInfo *MBPI = in emitBBAddrMapSection() local
1456 MBPI->getEdgeProbability(&MBB, SuccMBB).getNumerator()); in emitBBAddrMapSection()