Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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()
213 MachineBranchProbabilityInfo &MBPI = in runOnMachineFunction() local
216 calculate(F, MBPI, MLI); in runOnMachineFunction()
261 const MachineBranchProbabilityInfo &MBPI) { in onEdgeSplit() argument
264 MBPI.getEdgeProbability(&NewPredecessor, &NewSuccessor); in onEdgeSplit()
H A DMachineBlockPlacement.cpp379 const MachineBranchProbabilityInfo *MBPI; member in __anona54a76640111::MachineBlockPlacement
739 AdjustedSumProb -= MBPI->getEdgeProbability(BB, Succ); in collectViableSuccessors()
842 BranchProbability PProb = MBPI->getEdgeProbability(BB, Succ); in isProfitableToTailDup()
856 auto Prob = MBPI->getEdgeProbability(Succ, SuccSucc); in isProfitableToTailDup()
874 * MBPI->getEdgeProbability(SuccPred, Succ); in isProfitableToTailDup()
909 BranchProbability UProb = MBPI->getEdgeProbability(Succ, PDom); in isProfitableToTailDup()
1087 MBPI->getEdgeProbability(SuccPred, Succ); in getBestTrellisSuccessor()
1116 isProfitableToTailDup(BB, Succ2, MBPI->getEdgeProbability(BB, Succ1), in getBestTrellisSuccessor()
1119 MBPI->getEdgeProbability(BB, Succ2), AdjustedSumProb); in getBestTrellisSuccessor()
1134 MBPI->getEdgeProbability(BB, TrellisSucc), AdjustedSumProb); in getBestTrellisSuccessor()
[all …]
H A DLazyMachineBlockFrequencyInfo.cpp65 auto &MBPI = getAnalysis<MachineBranchProbabilityInfo>(); in calculateIfNotAvailable() local
90 OwnedMBFI->calculate(*MF, MBPI, *MLI); in calculateIfNotAvailable()
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 DIfConversion.cpp195 const MachineBranchProbabilityInfo *MBPI; member in __anon4f83ad000111::IfConverter
450 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in INITIALIZE_PASS_DEPENDENCY()
463 BranchFolder BF(true, false, MBFI, *MBPI, PSI); in INITIALIZE_PASS_DEPENDENCY()
602 BranchFolder BF(false, false, MBFI, *MBPI, PSI); in INITIALIZE_PASS_DEPENDENCY()
1293 BranchProbability Prediction = MBPI->getEdgeProbability(BB, TrueBBI.BB); in AnalyzeBlock()
1675 CvtNext = MBPI->getEdgeProbability(&CvtMBB, &NextMBB); in IfConvertTriangle()
1676 CvtFalse = MBPI->getEdgeProbability(&CvtMBB, CvtBBI->FalseBB); in IfConvertTriangle()
1677 BBNext = MBPI->getEdgeProbability(BBI.BB, &NextMBB); in IfConvertTriangle()
1678 BBCvt = MBPI->getEdgeProbability(BBI.BB, &CvtMBB); in IfConvertTriangle()
2283 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, &FromMBB); 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()
902 PredBB->addSuccessor(Succ, MBPI->getEdgeProbability(TailBB, Succ)); in tailDuplicate()
H A DEarlyIfConversion.cpp1092 MachineBranchProbabilityInfo *MBPI; member in __anon3786be1d0911::EarlyIfPredicator
1133 auto TrueProbability = MBPI->getEdgeProbability(IfConv.Head, IfConv.TBB); in shouldConvertIf()
1198 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
H A DMachineSink.cpp125 const MachineBranchProbabilityInfo *MBPI; member in __anonecea8dd50111::MachineSinking
433 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
457 MBFI->onEdgeSplit(*Pair.first, *NewSucc, *MBPI); in runOnMachineFunction()
598 if (From->isSuccessor(To) && MBPI->getEdgeProbability(From, To) <= in isWorthBreakingCriticalEdge()
H A DBranchFolding.cpp146 MBBFreqInfo(FreqInfo), MBPI(ProbInfo), PSI(PSI) { in BranchFolder()
1170 *EdgeFreq += BlockFreq * MBPI.getEdgeProbability(SrcMBB, *SuccI); in setCommonTailEdgeWeights()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineBlockFrequencyInfo.h42 MachineBranchProbabilityInfo &MBPI,
52 const MachineBranchProbabilityInfo &MBPI,
82 const MachineBranchProbabilityInfo &MBPI);
H A DTailDuplicator.h42 const MachineBranchProbabilityInfo *MBPI; variable
72 const MachineBranchProbabilityInfo *MBPI,
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64ConditionalCompares.cpp142 const MachineBranchProbabilityInfo *MBPI; member in __anonbd96cf2c0111::SSACCmpConv
191 const MachineBranchProbabilityInfo *MBPI) { in runOnMachineFunction() argument
193 this->MBPI = MBPI; in runOnMachineFunction()
579 BranchProbability Head2CmpBB = MBPI->getEdgeProbability(Head, CmpBB); in convert()
580 BranchProbability CmpBB2Tail = MBPI->getEdgeProbability(CmpBB, Tail); in convert()
595 BranchProbability Head2Tail = MBPI->getEdgeProbability(Head, Tail); in convert()
605 BranchProbability CmpBB2I = MBPI->getEdgeProbability(CmpBB, *I); in convert()
761 const MachineBranchProbabilityInfo *MBPI; member in __anonbd96cf2c0211::AArch64ConditionalCompares
939 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
945 CmpConv.runOnMachineFunction(MF, MBPI); in runOnMachineFunction()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp220 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anon05a9e3c20111::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.h452 const MachineBranchProbabilityInfo *MBPI) const;
454 const MachineBranchProbabilityInfo *MBPI) const;
H A DHexagonInstrInfo.cpp3740 const MachineBranchProbabilityInfo *MBPI) const { in getDotNewPredJumpOp()
3747 auto getEdgeProbability = [MBPI] (const MachineBasicBlock *Src, in getDotNewPredJumpOp()
3749 if (MBPI) in getDotNewPredJumpOp()
3750 return MBPI->getEdgeProbability(Src, Dst); in getDotNewPredJumpOp()
3826 const MachineBranchProbabilityInfo *MBPI) const { in getDotNewPredOp()
3831 return getDotNewPredJumpOp(MI, MBPI); in getDotNewPredOp()
/openbsd-src/gnu/llvm/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 __anon8d2f284a0111::PPCReduceCRLogicals
573 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in initialize()
694 InvertOrigBranch, TargetIsFallThrough, MBPI, CRI.MI, in splitBlockOnBinaryCROp()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp89 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in init()
92 MBPI = nullptr; in init()
518 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
954 const MachineBranchProbabilityInfo *MBPI = in frequency() local
956 if (!MBPI) in frequency()
959 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
H A DRegBankSelect.h502 MachineBranchProbabilityInfo *MBPI = nullptr; variable