Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBranchProbability.h137 BranchProbability Prob(*this);
138 Prob += RHS;
139 return Prob;
143 BranchProbability Prob(*this);
144 Prob -= RHS;
145 return Prob;
149 BranchProbability Prob(*this);
150 Prob *= RHS;
151 return Prob;
155 BranchProbability Prob(*this);
[all …]
H A DBlockFrequency.h42 BlockFrequency &operator*=(BranchProbability Prob);
43 BlockFrequency operator*(BranchProbability Prob) const;
47 BlockFrequency &operator/=(BranchProbability Prob);
48 BlockFrequency operator/(BranchProbability Prob) const;
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DBlockFrequency.cpp21 BlockFrequency &BlockFrequency::operator*=(BranchProbability Prob) { in operator *=() argument
22 Frequency = Prob.scale(Frequency); in operator *=()
26 BlockFrequency BlockFrequency::operator*(BranchProbability Prob) const { in operator *()
28 Freq *= Prob; in operator *()
32 BlockFrequency &BlockFrequency::operator/=(BranchProbability Prob) { in operator /=() argument
33 Frequency = Prob.scaleByInverse(Frequency); in operator /=()
37 BlockFrequency BlockFrequency::operator/(BranchProbability Prob) const { in operator /()
39 Freq /= Prob; in operator /()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h50 BranchProbability Prob; member
53 MachineBasicBlock *MBB, BranchProbability Prob) { in range()
59 C.Prob = Prob; in range()
64 unsigned JTCasesIndex, BranchProbability Prob) { in jumpTable()
70 C.Prob = Prob; in jumpTable()
75 unsigned BTCasesIndex, BranchProbability Prob) { in bitTests()
81 C.Prob = Prob; in bitTests()
219 BranchProbability Prob; global() member
[all...]
H A DMachineBasicBlock.h745 BranchProbability Prob = BranchProbability::getUnknown());
754 void setSuccProbability(succ_iterator I, BranchProbability Prob);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSwitchLoweringUtils.cpp200 auto Prob = BranchProbability::getZero(); in buildJumpTable() local
211 Prob += Clusters[I].Prob; in buildJumpTable()
226 JTProbs[Clusters[I].MBB] += Clusters[I].Prob; in buildJumpTable()
264 JTCases.size() - 1, Prob); in buildJumpTable()
438 CB->ExtraProb += Clusters[i].Prob; in buildBitTests()
439 TotalProb += Clusters[i].Prob; in buildBitTests()
490 Clusters[DstIndex - 1].Prob += CC.Prob; in sortAndRangeify()
503 if (X.Prob != CC.Prob) in caseClusterRank()
504 return X.Prob > CC.Prob; in caseClusterRank()
516 auto LeftProb = LastLeft->Prob + W.DefaultProb / 2; in computeSplitWorkItemInfo()
[all …]
H A DMachineBranchProbabilityInfo.cpp105 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() local
107 << " probability is " << Prob in printEdgeProbability()
H A DMachineBasicBlock.cpp785 for (auto Prob : Probs) in validateSuccProbs() local
786 Sum += Prob.getNumerator(); in validateSuccProbs()
797 BranchProbability Prob) { in addSuccessor() argument
801 Probs.push_back(Prob); in addSuccessor()
925 auto Prob = *FromMBB->Probs.begin(); in transferSuccessors() local
926 addSuccessor(Succ, Prob); in transferSuccessors()
942 auto Prob = *FromMBB->Probs.begin(); in transferSuccessorsAndUpdatePHIs() local
943 addSuccessor(Succ, Prob); in transferSuccessorsAndUpdatePHIs()
1578 const auto &Prob = *getProbabilityIterator(Succ); in getSuccProbability() local
1579 if (Prob.isUnknown()) { in getSuccProbability()
[all …]
H A DMachineBlockPlacement.cpp860 auto Prob = MBPI->getEdgeProbability(Succ, SuccSucc); in isProfitableToTailDup() local
861 if (Prob > BestSuccSucc) in isProfitableToTailDup()
862 BestSuccSucc = Prob; in isProfitableToTailDup()
H A DBranchFolding.cpp1199 auto Prob = BranchProbability::getBranchProbability( in setCommonTailEdgeWeights() local
1201 TailMBB.setSuccProbability(SuccI, Prob); in setCommonTailEdgeWeights()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp1123 auto Prob = BranchProbability::getZero(); in getEdgeProbability() local
1126 Prob += Probs.find(std::make_pair(Src, I.getSuccessorIndex()))->second; in getEdgeProbability()
1128 return Prob; in getEdgeProbability()
1171 auto Prob = this->Probs[std::make_pair(Src, SuccIdx)]; in copyEdgeProbabilities() local
1172 this->Probs[std::make_pair(Dst, SuccIdx)] = Prob; in copyEdgeProbabilities()
1174 << " successor probability to " << Prob << "\n"); in copyEdgeProbabilities()
1190 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability() local
1195 OS << " probability is " << Prob in printEdgeProbability()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp667 BranchProbability Prob) { in addSuccessorWithProb() argument
672 if (Prob.isUnknown()) in addSuccessorWithProb()
673 Prob = getEdgeProbability(Src, Dst); in addSuccessorWithProb()
674 Src->addSuccessor(Dst, Prob); in addSuccessorWithProb()
702 BranchProbability Prob = in translateSwitch() local
705 Clusters.push_back(CaseCluster::range(CaseVal, CaseVal, Succ, Prob)); in translateSwitch()
1006 auto JumpProb = I->Prob; in lowerJumpTableWorkItem()
1076 CurMBB, MIB.getDebugLoc(), I->Prob, UnhandledProbs); in lowerSwitchRangeWorkItem()
1123 addSuccessorWithProb(SwitchBB, MBB, B.Prob); in emitBitTestHeader()
1223 BTB->Prob += DefaultProb / 2; in lowerBitTestWorkItem()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DIRTranslator.h314 const BasicBlock *EHPadBB, BranchProbability Prob,
654 BranchProbability Prob = BranchProbability::getUnknown()) override {
655 IRT->addSuccessorWithProb(Src, Dst, Prob);
775 BranchProbability Prob = BranchProbability::getUnknown());
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp507 BranchProbability Prob(9, 10); in isProfitable() local
510 MBPI->getEdgeProbability(FP.SplitB, FP.TrueB) > Prob)) 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()
/freebsd/contrib/dialog/po/
H A Dcs.po102 msgstr "Probíhá"
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsDelaySlotFiller.cpp875 auto &Prob = getAnalysis<MachineBranchProbabilityInfoWrapperPass>().getMBPI(); in selectSuccBB() local
879 return Prob.getEdgeProbability(&B, Dst0) < in selectSuccBB()
880 Prob.getEdgeProbability(&B, Dst1); in selectSuccBB()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h239 BranchProbability Prob = BranchProbability::getUnknown()) override {
240 SDB->addSuccessorWithProb(Src, Dst, Prob);
519 BranchProbability Prob = BranchProbability::getUnknown());
H A DSelectionDAGBuilder.cpp2054 BranchProbability Prob, in findWasmUnwindDestinations() argument
2061 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob); in findWasmUnwindDestinations()
2068 UnwindDests.emplace_back(FuncInfo.MBBMap[CatchPadBB], Prob); in findWasmUnwindDestinations()
2088 BranchProbability Prob, in findUnwindDestinations() argument
2099 findWasmUnwindDestinations(FuncInfo, EHPadBB, Prob, UnwindDests); in findUnwindDestinations()
2110 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob); in findUnwindDestinations()
2115 UnwindDests.emplace_back(FuncInfo.MBBMap[EHPadBB], Prob); in findUnwindDestinations()
2122 UnwindDests.emplace_back(FuncInfo.MBBMap[CatchPadBB], Prob); in findUnwindDestinations()
2136 Prob *= BPI->getEdgeProbability(EHPadBB, NewEHPadBB); in findUnwindDestinations()
2407 BranchProbability Prob) { in addSuccessorWithProb() argument
[all …]
H A DSelectionDAGISel.cpp1984 BranchProbability UnhandledProb = BTB.Prob; in FinishBasicBlock()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFTypes.h996 BranchProbability Prob;
999 return std::tie(ID, Prob) == std::tie(Other.ID, Other.Prob);
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h1602 Scaled64 Prob = Jump.second;
1603 ProbMatrix[Dst].push_back(std::make_pair(Src, Prob / SumProb[Src]));
1681 inline uint32_t getWeightFromBranchProb(const BranchProbability Prob) {
1682 return Prob.getNumerator();
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeLayout.cpp147 double Prob = 1.0 - static_cast<double>(JumpDist) / JumpMaxDist; in extTSPScore()
148 return Weight * Prob * Count; in extTSPScore()
126 double Prob = 1.0 - static_cast<double>(JumpDist) / JumpMaxDist; jumpExtTSPScore() local
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp2604 for (auto Prob : BBSuccProbs) in updateBlockFreqAndEdgeWeight() local
2605 Weights.push_back(Prob.getNumerator()); in updateBlockFreqAndEdgeWeight()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp233 PGOSS << "[" << SE.Prob << "]"; in constructPGOLabelString()
235 PGOSS.write_hex(SE.Prob.getNumerator()); in constructPGOLabelString()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DELFDumper.cpp7856 W.printObject("Probability", Succ.Prob); in printBBAddrMaps()
7858 W.printHex("Probability", Succ.Prob.getNumerator()); in printBBAddrMaps()