Home
last modified time | relevance | path

Searched refs:TrueProb (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp66 double TrueProb = Confidence->getValueAPF().convertToDouble(); in getBranchWeight() local
67 assert((TrueProb >= 0.0 && TrueProb <= 1.0) && in getBranchWeight()
69 double FalseProb = (1.0 - TrueProb) / (BranchCount - 1); in getBranchWeight()
70 uint32_t LikelyBW = ceil((TrueProb * (double)(INT32_MAX - 1)) + 1.0); in getBranchWeight()
130 double TrueProb = Confidence->getValueAPF().convertToDouble(); in handlePhiDef() local
131 ExpectedValueIsLikely = (TrueProb > 0.5); in handlePhiDef()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSwitchLoweringUtils.h141 BranchProbability TrueProb, FalseProb; member
153 TrueProb(trueprob), FalseProb(falseprob), in CC()
166 DbgLoc(dl), TrueProb(trueprob), FalseProb(falseprob),
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp580 BranchProbability &TrueProb, in extractBranchProbabilities() argument
595 TrueProb = BranchProbability::getBranchProbability(TrueWeight, SumWeight); in extractBranchProbabilities()
610 static bool checkBias(K *Key, BranchProbability TrueProb, in checkBias() argument
614 if (TrueProb >= Threshold) { in checkBias()
616 BiasMap[Key] = TrueProb; in checkBias()
663 BranchProbability TrueProb, FalseProb; in checkBiasedSelect() local
664 if (!extractBranchProbabilities(SI, TrueProb, FalseProb)) in checkBiasedSelect()
667 CHR_DEBUG(dbgs() << "TrueProb " << TrueProb << " "); in checkBiasedSelect()
669 return checkBias(SI, TrueProb, FalseProb, in checkBiasedSelect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp127 auto TrueProb = BranchProbability::getBranchProbability(TrueWt, SumWt); in analyzeProfMetadata() local
130 if (TrueProb <= ColdProbThresh) in analyzeProfMetadata()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp922 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
972 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2862 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2918 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()