Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp67 double TrueProb = Confidence->getValueAPF().convertToDouble(); in getBranchWeight() local
68 assert((TrueProb >= 0.0 && TrueProb <= 1.0) && in getBranchWeight()
70 double FalseProb = (1.0 - TrueProb) / (BranchCount - 1); in getBranchWeight()
71 uint32_t LikelyBW = ceil((TrueProb * (double)(INT32_MAX - 1)) + 1.0); in getBranchWeight()
/llvm-project-15.0.7/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) {}
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DControlHeightReduction.cpp564 static bool checkMDProf(MDNode *MD, BranchProbability &TrueProb, in checkMDProf() argument
586 TrueProb = BranchProbability::getBranchProbability(TrueWt, SumWt); in checkMDProf()
601 static bool checkBias(K *Key, BranchProbability TrueProb, in checkBias() argument
605 if (TrueProb >= Threshold) { in checkBias()
607 BiasMap[Key] = TrueProb; in checkBias()
655 BranchProbability TrueProb, FalseProb; in checkBiasedSelect() local
657 TrueProb, FalseProb)) in checkBiasedSelect()
660 CHR_DEBUG(dbgs() << "TrueProb " << TrueProb << " "); in checkBiasedSelect()
662 return checkBias(SI, TrueProb, FalseProb, in checkBiasedSelect()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp825 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
875 addSuccessorWithProb(CB.ThisBB, CB.TrueBB, CB.TrueProb); in emitSwitchCase()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2464 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()
2520 addSuccessorWithProb(SwitchBB, CB.TrueBB, CB.TrueProb); in visitSwitchCase()