Home
last modified time | relevance | path

Searched refs:BranchProbability (Results 1 – 20 of 20) sorted by relevance

/external/llvm/include/llvm/Support/
DBranchProbability.h25 class BranchProbability {
33 BranchProbability(uint32_t n, uint32_t d) : N(n), D(d) { in BranchProbability() function
38 static BranchProbability getZero() { return BranchProbability(0, 1); } in getZero()
39 static BranchProbability getOne() { return BranchProbability(1, 1); } in getOne()
45 BranchProbability getCompl() const { in getCompl()
46 return BranchProbability(D - N, D); in getCompl()
53 bool operator==(BranchProbability RHS) const {
56 bool operator!=(BranchProbability RHS) const {
59 bool operator<(BranchProbability RHS) const {
62 bool operator>(BranchProbability RHS) const {
[all …]
DBlockFrequency.h22 class BranchProbability; variable
36 BlockFrequency &operator*=(const BranchProbability &Prob);
37 const BlockFrequency operator*(const BranchProbability &Prob) const;
/external/llvm/unittests/Support/
DBlockFrequencyTest.cpp14 BranchProbability Prob(UINT32_MAX - 1, UINT32_MAX); in TEST()
21 BranchProbability Prob(UINT32_MAX, UINT32_MAX); in TEST()
28 BranchProbability Prob(3000000, 9000000); in TEST()
35 BranchProbability Prob(UINT32_MAX / 2, UINT32_MAX); in TEST()
44 BranchProbability Prob(P, P); in TEST()
51 BranchProbability Prob(UINT32_MAX, UINT32_MAX); in TEST()
57 BranchProbability A(4, 5); in TEST()
58 BranchProbability B(4U << 29, 5U << 29); in TEST()
59 BranchProbability C(3, 4); in TEST()
75 BranchProbability BigZero(0, UINT32_MAX); in TEST()
[all …]
/external/llvm/lib/Support/
DBranchProbability.cpp21 void BranchProbability::print(raw_ostream &OS) const { in print()
25 void BranchProbability::dump() const { in dump()
31 raw_ostream &operator<<(raw_ostream &OS, const BranchProbability &Prob) { in operator <<()
DBlockFrequency.cpp67 BlockFrequency &BlockFrequency::operator*=(const BranchProbability &Prob) { in operator *=()
95 BlockFrequency::operator*(const BranchProbability &Prob) const { in operator *()
DAndroid.mk10 BranchProbability.cpp \
DCMakeLists.txt13 BranchProbability.cpp
/external/llvm/lib/CodeGen/
DMachineBranchProbabilityInfo.cpp84 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot()
100 if (getEdgeProbability(MBB, MaxSucc) >= BranchProbability(4, 5)) in getHotSucc()
106 BranchProbability
113 return BranchProbability(N, D); in getEdgeProbability()
120 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
DMachineBlockPlacement.cpp322 const BranchProbability HotProb(4, 5); // 80% in selectBestSuccessor()
351 BranchProbability SuccProb(SuccWeight / WeightScale, SumWeight); in selectBestSuccessor()
684 BranchProbability SuccProb(SuccWeight / WeightScale, SumWeight); in findBestLoopExit()
1025 const BranchProbability ColdProb(1, 5); // 20% in buildCFGChains()
1067 BranchProbability LayoutProb = MBPI->getEdgeProbability(LayoutPred, *BI); in buildCFGChains()
DIfConversion.cpp179 const BranchProbability &Prediction) const;
182 const BranchProbability &Prediction) const;
210 const BranchProbability &Prediction) const { in MeetIfcvtSizeLimit()
219 const BranchProbability &Prediction) const { in MeetIfcvtSizeLimit()
462 const BranchProbability &Prediction) const { in ValidSimple()
489 const BranchProbability &Prediction) const { in ValidTriangle()
801 BranchProbability Prediction = MBPI->getEdgeProbability(BB, TrueBBI.BB); in AnalyzeBlock()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp458 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot()
481 if (BranchProbability(MaxWeight, Sum) > BranchProbability(4, 5)) in getHotSucc()
528 BranchProbability BranchProbabilityInfo::
533 return BranchProbability(N, D); in getEdgeProbability()
538 BranchProbability BranchProbabilityInfo::
544 return BranchProbability(N, D); in getEdgeProbability()
552 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
/external/llvm/include/llvm/Analysis/
DBranchProbabilityInfo.h57 BranchProbability getEdgeProbability(const BasicBlock *Src,
63 BranchProbability getEdgeProbability(const BasicBlock *Src,
DBlockFrequencyImpl.h76 BranchProbability Prob = BPI->getEdgeProbability(Src, Dst); in getEdgeFreq()
90 void divBlockFreq(BlockT *BB, BranchProbability Prob) { in divBlockFreq()
217 divBlockFreq(BB, BranchProbability(Numerator, EntryFreq)); in doBlock()
/external/llvm/lib/Target/Hexagon/
DHexagonInstrInfo.h117 const BranchProbability &Probability) const;
123 const BranchProbability &Probability) const;
137 const BranchProbability &Probability) const;
DHexagonInstrInfo.cpp2273 const BranchProbability &Probability) const { in isProfitableToIfCvt()
2286 const BranchProbability &Probability) const { in isProfitableToIfCvt()
2340 const BranchProbability &Probability) const { in isProfitableToDupForIfCvt()
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h38 class BranchProbability; variable
319 const BranchProbability &Probability) const { in isProfitableToIfCvt()
334 const BranchProbability &Probability) const { in isProfitableToIfCvt()
346 const BranchProbability &Probability) const { in isProfitableToDupForIfCvt()
/external/llvm/lib/Target/ARM/
DARMBaseInstrInfo.h174 const BranchProbability &Probability) const;
180 const BranchProbability &Probability) const;
184 const BranchProbability in isProfitableToDupForIfCvt()
DARMBaseInstrInfo.cpp1494 const BranchProbability &Probability) const { in isProfitableToIfCvt()
1512 const BranchProbability &Probability) const { in isProfitableToIfCvt()
/external/llvm/include/llvm/CodeGen/
DMachineBranchProbabilityInfo.h76 BranchProbability getEdgeProbability(MachineBasicBlock *Src,
/external/llvm/test/CodeGen/Thumb2/
D2010-06-21-TailMergeBug.ll42 ; Do not convert into single stream code. BranchProbability Analysis assumes