Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/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.cpp356 const MachineBranchProbabilityInfo *MBPI; member in __anon5e0944180111::MachineBlockPlacement
707 AdjustedSumProb -= MBPI->getEdgeProbability(BB, Succ); in collectViableSuccessors()
810 BranchProbability PProb = MBPI->getEdgeProbability(BB, Succ); in isProfitableToTailDup()
824 auto Prob = MBPI->getEdgeProbability(Succ, SuccSucc); in isProfitableToTailDup()
842 * MBPI->getEdgeProbability(SuccPred, Succ); in isProfitableToTailDup()
877 BranchProbability UProb = MBPI->getEdgeProbability(Succ, PDom); in isProfitableToTailDup()
1055 MBPI->getEdgeProbability(SuccPred, Succ); in getBestTrellisSuccessor()
1084 isProfitableToTailDup(BB, Succ2, MBPI->getEdgeProbability(BB, Succ1), in getBestTrellisSuccessor()
1087 MBPI->getEdgeProbability(BB, Succ2), AdjustedSumProb); in getBestTrellisSuccessor()
1102 MBPI->getEdgeProbability(BB, TrellisSucc), AdjustedSumProb); in getBestTrellisSuccessor()
[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.cpp64 auto &MBPI = getAnalysis<MachineBranchProbabilityInfo>(); in calculateIfNotAvailable() local
89 OwnedMBFI->calculate(*MF, MBPI, *MLI); in calculateIfNotAvailable()
H A DIfConversion.cpp197 const MachineBranchProbabilityInfo *MBPI; member in __anon287ba0340111::IfConverter
452 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in INITIALIZE_PASS_DEPENDENCY()
465 BranchFolder BF(true, false, MBFI, *MBPI, PSI); in INITIALIZE_PASS_DEPENDENCY()
604 BranchFolder BF(false, false, MBFI, *MBPI, PSI); in INITIALIZE_PASS_DEPENDENCY()
1295 BranchProbability Prediction = MBPI->getEdgeProbability(BB, TrueBBI.BB); in AnalyzeBlock()
1677 CvtNext = MBPI->getEdgeProbability(&CvtMBB, &NextMBB); in IfConvertTriangle()
1678 CvtFalse = MBPI->getEdgeProbability(&CvtMBB, CvtBBI->FalseBB); in IfConvertTriangle()
1679 BBNext = MBPI->getEdgeProbability(BBI.BB, &NextMBB); in IfConvertTriangle()
1680 BBCvt = MBPI->getEdgeProbability(BBI.BB, &CvtMBB); in IfConvertTriangle()
2276 To2FromProb = MBPI->getEdgeProbability(ToBBI.BB, &FromMBB); in MergeBlocks()
[all …]
H A DBranchFolding.h131 const MachineBranchProbabilityInfo &MBPI; variable
H A DTailDuplicator.cpp91 MBPI = MBPIin; in initMF()
96 assert(MBPI != nullptr && "Machine Branch Probability Info required"); in initMF()
901 PredBB->addSuccessor(Succ, MBPI->getEdgeProbability(TailBB, Succ)); in tailDuplicate()
H A DEarlyIfConversion.cpp1088 MachineBranchProbabilityInfo *MBPI; member in __anon91bad1d10911::EarlyIfPredicator
1129 auto TrueProbability = MBPI->getEdgeProbability(IfConv.Head, IfConv.TBB); in shouldConvertIf()
1194 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
H A DMachineSink.cpp122 const MachineBranchProbabilityInfo *MBPI; member in __anon5856ea890111::MachineSinking
428 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
452 MBFI->onEdgeSplit(*Pair.first, *NewSucc, *MBPI); in runOnMachineFunction()
593 if (From->isSuccessor(To) && MBPI->getEdgeProbability(From, To) <= in isWorthBreakingCriticalEdge()
H A DBranchFolding.cpp142 MBBFreqInfo(FreqInfo), MBPI(ProbInfo), PSI(PSI) { in BranchFolder()
1166 *EdgeFreq += BlockFreq * MBPI.getEdgeProbability(SrcMBB, *SuccI); in setCommonTailEdgeWeights()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ConditionalCompares.cpp143 const MachineBranchProbabilityInfo *MBPI; member in __anon6cc3cae00111::SSACCmpConv
192 const MachineBranchProbabilityInfo *MBPI) { in runOnMachineFunction() argument
194 this->MBPI = MBPI; in runOnMachineFunction()
580 BranchProbability Head2CmpBB = MBPI->getEdgeProbability(Head, CmpBB); in convert()
581 BranchProbability CmpBB2Tail = MBPI->getEdgeProbability(CmpBB, Tail); in convert()
596 BranchProbability Head2Tail = MBPI->getEdgeProbability(Head, Tail); in convert()
606 BranchProbability CmpBB2I = MBPI->getEdgeProbability(CmpBB, *I); in convert()
762 const MachineBranchProbabilityInfo *MBPI; member in __anon6cc3cae00211::AArch64ConditionalCompares
940 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
946 CmpConv.runOnMachineFunction(MF, MBPI); in runOnMachineFunction()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineBlockFrequencyInfo.h42 MachineBranchProbabilityInfo &MBPI,
52 const MachineBranchProbabilityInfo &MBPI,
81 const MachineBranchProbabilityInfo &MBPI);
H A DTailDuplicator.h42 const MachineBranchProbabilityInfo *MBPI; variable
72 const MachineBranchProbabilityInfo *MBPI,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp220 const MachineBranchProbabilityInfo *MBPI = nullptr; member in __anon77c06b760111::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.cpp100 const MachineBranchProbabilityInfo *MBPI; member
339 *MBPI) { in getNewValueJumpOpcode() argument
343 MBPI->getEdgeProbability(Src, jmpTarget); in getNewValueJumpOpcode()
463 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction()
688 jmpTarget, MBPI); in runOnMachineFunction()
H A DHexagonVLIWPacketizer.h69 const MachineBranchProbabilityInfo *MBPI;
79 AAResults *AA, const MachineBranchProbabilityInfo *MBPI,
H A DHexagonVLIWPacketizer.cpp135 const MachineBranchProbabilityInfo *MBPI, bool Minimal) in INITIALIZE_PASS_DEPENDENCY()
136 : VLIWPacketizerList(MF, MLI, AA), MBPI(MBPI), MLI(&MLI), in INITIALIZE_PASS_DEPENDENCY()
211 auto *MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in runOnMachineFunction() local
219 HexagonPacketizerList Packetizer(MF, MLI, AA, MBPI, MinOnly); in runOnMachineFunction()
465 NewOpcode = HII->getDotNewPredOp(MI, MBPI); in promoteToDotNew()
H A DHexagonInstrInfo.h447 const MachineBranchProbabilityInfo *MBPI) const;
449 const MachineBranchProbabilityInfo *MBPI) const;
H A DHexagonInstrInfo.cpp3665 const MachineBranchProbabilityInfo *MBPI) const { in getDotNewPredJumpOp()
3672 auto getEdgeProbability = [MBPI] (const MachineBasicBlock *Src, in getDotNewPredJumpOp()
3674 if (MBPI) in getDotNewPredJumpOp()
3675 return MBPI->getEdgeProbability(Src, Dst); in getDotNewPredJumpOp()
3751 const MachineBranchProbabilityInfo *MBPI) const { in getDotNewPredOp()
3756 return getDotNewPredJumpOp(MI, MBPI); in getDotNewPredOp()
/netbsd-src/external/apache2/llvm/dist/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 __anon4216a67e0111::PPCReduceCRLogicals
572 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in initialize()
693 InvertOrigBranch, TargetIsFallThrough, MBPI, CRI.MI, in splitBlockOnBinaryCROp()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp90 MBPI = &getAnalysis<MachineBranchProbabilityInfo>(); in init()
93 MBPI = nullptr; in init()
515 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
950 const MachineBranchProbabilityInfo *MBPI = in frequency() local
952 if (!MBPI) in frequency()
955 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DRegBankSelect.h502 MachineBranchProbabilityInfo *MBPI = nullptr; variable