Home
last modified time | relevance | path

Searched refs:Probs (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp1059 Probs.clear(); in releaseMemory()
1097 auto I = Probs.find(std::make_pair(Src, IndexInSuccessors)); in getEdgeProbability()
1098 assert((Probs.end() == Probs.find(std::make_pair(Src, 0))) == in getEdgeProbability()
1099 (Probs.end() == I) && in getEdgeProbability()
1103 if (I != Probs.end()) in getEdgeProbability()
1120 if (!Probs.count(std::make_pair(Src, 0))) in getEdgeProbability()
1126 Prob += Probs.find(std::make_pair(Src, I.getSuccessorIndex()))->second; in getEdgeProbability()
1133 const BasicBlock *Src, const SmallVectorImpl<BranchProbability> &Probs) { in setEdgeProbability() argument
1134 assert(Src->getTerminator()->getNumSuccessors() == Probs.size()); in setEdgeProbability()
1136 if (Probs.size() == 0) in setEdgeProbability()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBasicBlock.cpp398 if (!Probs.empty()) in print()
403 if (!Probs.empty() && IsStandalone) { in print()
785 for (auto Prob : Probs) in validateSuccProbs()
791 Probs.size() && in validateSuccProbs()
800 if (!(Probs.empty() && !Successors.empty())) in addSuccessor()
801 Probs.push_back(Prob); in addSuccessor()
810 Probs.clear(); in addSuccessorWithoutProb()
828 addSuccessor(New, Probs.empty() ? BranchProbability::getUnknown() in splitSuccessor()
846 if (!Probs.empty()) { in removeSuccessor()
848 Probs.erase(WI); in removeSuccessor()
[all …]
H A DMIRPrinter.cpp653 SmallVector<BranchProbability,8> Normalized(MBB.Probs.begin(), in canPredictBranchProbabilities()
654 MBB.Probs.end()); in canPredictBranchProbabilities()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBranchProbabilityInfo.h125 : Handles(std::move(Arg.Handles)), Probs(std::move(Arg.Probs)), in BranchProbabilityInfo()
138 Probs = std::move(RHS.Probs);
191 const SmallVectorImpl<BranchProbability> &Probs);
330 DenseMap<Edge, BranchProbability> Probs; variable
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineBasicBlock.h166 std::vector<BranchProbability> Probs;
762 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
809 bool hasSuccessorProbabilities() const { return !Probs.empty(); }
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp504 SmallVector<BranchProbability, 2> Probs{TProb / 2, FProb}; in findMergedConditions() local
505 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in findMergedConditions()
507 findMergedConditions(BOpOp1, TBB, FBB, TmpBB, SwitchBB, Opc, Probs[0], in findMergedConditions()
508 Probs[1], InvertCond); in findMergedConditions()
537 SmallVector<BranchProbability, 2> Probs{TProb, FProb / 2}; in findMergedConditions() local
538 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in findMergedConditions()
540 findMergedConditions(BOpOp1, TBB, FBB, TmpBB, SwitchBB, Opc, Probs[0], in findMergedConditions()
541 Probs[1], InvertCond); in findMergedConditions()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2706 SmallVector<BranchProbability, 2> Probs{TProb / 2, FProb}; in FindMergedConditions() local
2707 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in FindMergedConditions()
2709 FindMergedConditions(BOpOp1, TBB, FBB, TmpBB, SwitchBB, Opc, Probs[0], in FindMergedConditions()
2710 Probs[1], InvertCond); in FindMergedConditions()
2739 SmallVector<BranchProbability, 2> Probs{TProb, FProb / 2}; in FindMergedConditions() local
2740 BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end()); in FindMergedConditions()
2742 FindMergedConditions(BOpOp1, TBB, FBB, TmpBB, SwitchBB, Opc, Probs[0], in FindMergedConditions()
2743 Probs[1], InvertCond); in FindMergedConditions()