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
151 TrueProb(trueprob), FalseProb(falseprob) {} in CC()
162 DbgLoc(dl), TrueProb(trueprob), FalseProb(falseprob) {}
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp582 BranchProbability &TrueProb, in extractBranchProbabilities() argument
597 TrueProb = BranchProbability::getBranchProbability(TrueWeight, SumWeight); in extractBranchProbabilities()
612 static bool checkBias(K *Key, BranchProbability TrueProb, in checkBias() argument
616 if (TrueProb >= Threshold) { in checkBias()
618 BiasMap[Key] = TrueProb; in checkBias()
665 BranchProbability TrueProb, FalseProb; in checkBiasedSelect() local
666 if (!extractBranchProbabilities(SI, TrueProb, FalseProb)) in checkBiasedSelect()
669 CHR_DEBUG(dbgs() << "TrueProb " << TrueProb << " "); in checkBiasedSelect()
671 return checkBias(SI, TrueProb, FalseProb, in checkBiasedSelect()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp128 auto TrueProb = BranchProbability::getBranchProbability(TrueWt, SumWt); in analyzeProfMetadata() local
131 if (TrueProb <= ColdProbThresh) in analyzeProfMetadata()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp908 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
958 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2893 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2949 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()