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/CodeGen/
DMachineBranchProbabilityInfo.cpp76 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot()
92 if (getEdgeProbability(MBB, MaxSucc) >= BranchProbability(4, 5)) in getHotSucc()
98 BranchProbability
105 return BranchProbability(N, D); in getEdgeProbability()
112 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
DIfConversion.cpp177 const BranchProbability &Prediction) const;
180 const BranchProbability &Prediction) const;
208 const BranchProbability &Prediction) const { in MeetIfcvtSizeLimit()
217 const BranchProbability &Prediction) const { in MeetIfcvtSizeLimit()
454 const BranchProbability &Prediction) const { in ValidSimple()
481 const BranchProbability &Prediction) const { in ValidTriangle()
793 BranchProbability Prediction = MBPI->getEdgeProbability(BB, TrueBBI.BB); in AnalyzeBlock()
DMachineBlockPlacement.cpp325 const BranchProbability HotProb(4, 5); // 80% in selectBestSuccessor()
354 BranchProbability SuccProb(SuccWeight / WeightScale, SumWeight); in selectBestSuccessor()
687 BranchProbability SuccProb(SuccWeight / WeightScale, SumWeight); in findBestLoopExit()
/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/Target/Hexagon/
DHexagonInstrInfo.h117 const BranchProbability &Probability) const;
123 const BranchProbability &Probability) const;
137 const BranchProbability &Probability) const;
DHexagonInstrInfo.cpp1302 const BranchProbability &Probability) const { in isProfitableToIfCvt()
1315 const BranchProbability &Probability) const { in isProfitableToIfCvt()
1370 const BranchProbability &Probability) const { in isProfitableToDupForIfCvt()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp440 return getEdgeProbability(Src, Dst) > BranchProbability(4, 5); in isEdgeHot()
463 if (BranchProbability(MaxWeight, Sum) > BranchProbability(4, 5)) in getHotSucc()
490 BranchProbability BranchProbabilityInfo::
496 return BranchProbability(N, D); in getEdgeProbability()
504 const BranchProbability Prob = getEdgeProbability(Src, Dst); in printEdgeProbability()
/external/llvm/include/llvm/Target/
DTargetInstrInfo.h36 class BranchProbability; variable
324 const BranchProbability &Probability) const { in isProfitableToIfCvt()
339 const BranchProbability &Probability) const { in isProfitableToIfCvt()
351 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.cpp1439 const BranchProbability &Probability) const { in isProfitableToIfCvt()
1457 const BranchProbability &Probability) const { in isProfitableToIfCvt()
/external/llvm/include/llvm/Analysis/
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()
DBranchProbabilityInfo.h54 BranchProbability getEdgeProbability(const BasicBlock *Src,
/external/llvm/include/llvm/CodeGen/
DMachineBranchProbabilityInfo.h73 BranchProbability getEdgeProbability(MachineBasicBlock *Src,
/external/llvm/test/CodeGen/Thumb2/
D2010-06-21-TailMergeBug.ll42 ; Do not convert into single stream code. BranchProbability Analysis assumes