Searched refs:getCompl (Results 1 – 12 of 12) sorted by relevance
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | BranchProbabilityTest.cpp | 165 TEST(BranchProbabilityTest, getCompl) { in TEST() argument 166 EXPECT_EQ(BP(5, 7), BP(2, 7).getCompl()); in TEST() 167 EXPECT_EQ(BP(2, 7), BP(5, 7).getCompl()); in TEST() 168 EXPECT_EQ(BP::getZero(), BP(7, 7).getCompl()); in TEST() 169 EXPECT_EQ(BP::getOne(), BP(0, 7).getCompl()); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCReduceCRLogicals.cpp | 187 ProbFallThrough = ProbToNewTarget.getCompl(); in splitMBB() 188 ProbOrigFallThrough = ProbToNewTarget / ProbToNewTarget.getCompl(); in splitMBB() 189 ProbOrigTarget = ProbOrigFallThrough.getCompl(); in splitMBB() 192 ProbFallThrough = ProbToNewTarget.getCompl(); in splitMBB() 193 ProbOrigTarget = ProbToNewTarget / ProbToNewTarget.getCompl(); in splitMBB() 194 ProbOrigFallThrough = ProbOrigTarget.getCompl(); in splitMBB()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BranchProbability.h | 69 BranchProbability getCompl() const { return BranchProbability(D - N); } in getCompl() function
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IfConversion.cpp | 1390 Prediction.getCompl()) && in AnalyzeBlock() 1393 FalseBBI.ExtraCost2, Prediction.getCompl()) && in AnalyzeBlock() 1401 Prediction.getCompl()) && in AnalyzeBlock() 1404 FalseBBI.ExtraCost2, Prediction.getCompl()) && in AnalyzeBlock() 1411 if (ValidSimple(FalseBBI, Dups, Prediction.getCompl()) && in AnalyzeBlock() 1414 FalseBBI.ExtraCost2, Prediction.getCompl()) && in AnalyzeBlock()
|
| H A D | MachineBlockPlacement.cpp | 1554 if (PredEdgeFreq * HotProb >= CandidateEdgeFreq * HotProb.getCompl()) { in hasBetterLayoutPredecessor() 2521 ? TailBBFreq * TailToHeadProb.getCompl() in rotateLoopWithProfile() 3215 DefaultBranchProb = MBPI->getEdgeProbability(BB, *SuccIt).getCompl(); in findDuplicateCandidates()
|
| H A D | MachineBasicBlock.cpp | 1445 return Sum.getCompl() / (Probs.size() - KnownProbNum); in getSuccProbability()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | BranchProbabilityInfo.h | 194 return IsLikely ? LikelyProb : LikelyProb.getCompl(); in getBranchProbStackProtector()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 293 Weights.push_back(BP.getCompl().getNumerator()); in updatePredecessorProfileMetadata() 295 Weights.push_back(BP.getCompl().getNumerator()); in updatePredecessorProfileMetadata()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 3182 BranchProbability BIFalseProb = BITrueProb.getCompl(); in FoldTwoEntryPHINode() 3400 if (PBITrueProb.isUnknown() || PBITrueProb.getCompl() < Likely) in shouldFoldCondBranchesToCommonDestination() 3408 if (PBITrueProb.isUnknown() || PBITrueProb.getCompl() < Likely) in shouldFoldCondBranchesToCommonDestination()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 1844 static_cast<uint32_t>(CHRBranchBias.getCompl().scale(1000)), in fixupBranchesAndSelects()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMBaseInstrInfo.cpp | 2175 unsigned FUnpredCost = Probability.getCompl().scale(FUnpredCycles * ScalingUpFactor); in isProfitableToIfCvt() 2185 Probability.getCompl().scale(FCycles * ScalingUpFactor); in isProfitableToIfCvt()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 11129 BranchProbability SwitchProb = PeeledCaseProb.getCompl(); in scaleCaseProbality() 11179 nullptr, nullptr, TopCaseProb.getCompl()}; in peelDominantCaseCluster()
|