Home
last modified time | relevance | path

Searched refs:hasProfileSummary (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DProfileSummaryInfo.cpp58 if (hasProfileSummary()) in refresh()
65 if (!hasProfileSummary()) { in refresh()
71 if (!hasProfileSummary()) in refresh()
99 if (!F || !hasProfileSummary()) in isFunctionEntryHot()
115 if (!F || !hasProfileSummary()) in isFunctionHotInCallGraph()
144 if (!F || !hasProfileSummary()) in isFunctionColdInCallGraph()
174 if (!F || !hasProfileSummary()) in isFunctionHotOrColdInCallGraphNthPercentile()
226 if (!hasProfileSummary()) in isFunctionEntryCold()
267 if (!hasProfileSummary()) in computeThreshold()
375 return hasProfileSummary() && in hasPartialSampleProfile()
H A DInlineCost.cpp746 if (!PSI || !PSI->hasProfileSummary()) in isCostBenefitAnalysisEnabled()
1732 if (PSI && PSI->hasProfileSummary()) in isColdCallSite()
1757 if (PSI && PSI->hasProfileSummary() && PSI->isHotCallSite(Call, CallerBFI)) in getHotCallSiteThreshold()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DProfileSummaryInfo.h68 bool hasProfileSummary() const { return Summary != nullptr; } in hasProfileSummary() function
72 return hasProfileSummary() && in hasSampleProfile()
78 return hasProfileSummary() && in hasInstrumentationProfile()
84 return hasProfileSummary() && in hasCSInstrumentationProfile()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DProfileSummaryInfoTest.cpp129 EXPECT_FALSE(PSI.hasProfileSummary()); in TEST_F()
160 EXPECT_TRUE(PSI.hasProfileSummary()); in TEST_F()
199 EXPECT_TRUE(PSI.hasProfileSummary()); in TEST_F()
266 EXPECT_TRUE(PSI.hasProfileSummary()); in TEST_F()
294 EXPECT_TRUE(PSI.hasProfileSummary()); in TEST_F()
366 EXPECT_TRUE(PSI.hasProfileSummary()); in TEST_F()
399 EXPECT_TRUE(PSI1.hasProfileSummary()); in TEST_F()
412 EXPECT_TRUE(PSI2.hasProfileSummary()); in TEST_F()
425 EXPECT_TRUE(PSI3.hasProfileSummary()); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DSizeOpts.h54 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldFuncOptimizeForSizeImpl()
74 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldOptimizeForSizeImpl()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTailDuplication.cpp89 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
H A DMachineCombiner.cpp757 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
H A DSelectOptimize.cpp663 } else if (PSI->hasProfileSummary()) { in hasExpensiveColdOperand()
H A DExpandMemCmp.cpp823 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DSizeOptsTest.cpp70 EXPECT_TRUE(PSI.hasProfileSummary()); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp119 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
H A DX86FixupBWInsts.cpp170 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
H A DX86OptimizeLEAs.cpp721 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
H A DX86FixupLEAs.cpp241 auto *MBFI = (PSI && PSI->hasProfileSummary()) in runOnMachineFunction()
/llvm-project-15.0.7/llvm/unittests/Target/X86/
H A DMachineSizeOptsTest.cpp101 ASSERT_TRUE(PSI.hasProfileSummary()); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopLoadElimination.cpp662 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
722 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in run()
H A DLoopUnrollPass.cpp1576 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in run()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DInstructionSelect.cpp101 if (PSI && PSI->hasProfileSummary()) in runOnMachineFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp307 (PSI && PSI->hasProfileSummary() && !PSI->isHotCount(TotalCount))) in processFunction()
H A DControlHeightReduction.cpp409 assert(PSI.hasProfileSummary() && "Empty PSI?"); in shouldApply()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp1301 if (PSI.hasProfileSummary() && F.hasProfileData() && in unswitchFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp4603 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in run()
4651 (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGISel.cpp408 if (PSI && PSI->hasProfileSummary() && OptLevel != CodeGenOpt::None) in runOnMachineFunction()