Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp581 BranchProbability &TrueProb, in extractBranchProbabilities() argument
596 TrueProb = BranchProbability::getBranchProbability(TrueWeight, SumWeight); in extractBranchProbabilities()
611 static bool checkBias(K *Key, BranchProbability TrueProb, in checkBias() argument
615 if (TrueProb >= Threshold) { in checkBias()
617 BiasMap[Key] = TrueProb; in checkBias()
664 BranchProbability TrueProb, FalseProb; in checkBiasedSelect() local
665 if (!extractBranchProbabilities(SI, TrueProb, FalseProb)) in checkBiasedSelect()
668 CHR_DEBUG(dbgs() << "TrueProb " << TrueProb << " "); in checkBiasedSelect()
670 return checkBias(SI, TrueProb, FalseProb, in checkBiasedSelect()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp910 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
960 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2701 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2757 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()