| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SizeOpts.h | 40 static inline bool isPGSOColdCodeOnly(ProfileSummaryInfo *PSI) { in isPGSOColdCodeOnly() argument 43 (PSI->hasSampleProfile() && in isPGSOColdCodeOnly() 45 (PSI->hasPartialSampleProfile() && in isPGSOColdCodeOnly() 54 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldFuncOptimizeForSizeImpl() 60 if (isPGSOColdCodeOnly(PSI)) in shouldFuncOptimizeForSizeImpl() 61 return PSI->isFunctionColdInCallGraph(F, *BFI); in shouldFuncOptimizeForSizeImpl() 62 if (PSI->hasSampleProfile()) in shouldFuncOptimizeForSizeImpl() 75 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldOptimizeForSizeImpl() 81 if (isPGSOColdCodeOnly(PSI)) in shouldOptimizeForSizeImpl() 82 return PSI->isColdBlock(BBOrBlockFreq, BFI); in shouldOptimizeForSizeImpl() [all …]
|
| H A D | SampleProfileLoaderBaseUtil.h | 41 ProfileSummaryInfo *PSI) const; 43 ProfileSummaryInfo *PSI) const; 46 ProfileSummaryInfo *PSI) const; 89 bool callsiteIsHot(const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI,
|
| H A D | Cloning.h | 206 ProfileSummaryInfo *PSI = nullptr, 209 : GetAssumptionCache(GetAssumptionCache), PSI(PSI), CallerBFI(CallerBFI), in GetAssumptionCache() 215 ProfileSummaryInfo *PSI; variable
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SizeOpts.cpp | 63 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraph() 65 return PSI->isFunctionColdInCallGraph(F, BFI); in isFunctionColdInCallGraph() 71 return PSI->isFunctionHotInCallGraphNthPercentile(CutOff, F, BFI); in isFunctionHotInCallGraphNthPercentile() 80 ProfileSummaryInfo *PSI, in isColdBlock() 82 return PSI->isColdBlock(BB, BFI); in isColdBlock() 86 ProfileSummaryInfo *PSI, in isHotBlockNthPercentile() 88 return PSI->isHotBlockNthPercentile(CutOff, BB, BFI); in isHotBlockNthPercentile() 91 ProfileSummaryInfo *PSI, in isColdBlockNthPercentile() 93 return PSI->isColdBlockNthPercentile(CutOff, BB, BFI); in isColdBlockNthPercentile() 101 return shouldFuncOptimizeForSizeImpl(F, PSI, BFI, QueryType); in shouldOptimizeForSize() [all …]
|
| H A D | SampleProfileLoaderBaseUtil.cpp | 69 assert(PSI && "PSI is expected to be non null"); in callsiteIsHot() 72 return !PSI->isColdCount(CallsiteTotalSamples); in callsiteIsHot() 74 return PSI->isHotCount(CallsiteTotalSamples); in callsiteIsHot() 98 ProfileSummaryInfo *PSI) const { in countUsedRecords() 111 if (callsiteIsHot(CalleeSamples, PSI, ProfAccForSymsInList)) in countUsedRecords() 112 Count += countUsedRecords(CalleeSamples, PSI); in countUsedRecords() 123 ProfileSummaryInfo *PSI) const { in countBodyRecords() 130 if (callsiteIsHot(CalleeSamples, PSI, ProfAccForSymsInList)) in countBodyRecords() 131 Count += countBodyRecords(CalleeSamples, PSI); in countBodyRecords() 151 if (callsiteIsHot(CalleeSamples, PSI, ProfAccForSymsInList)) in countBodySamples() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineFunctionSplitter.cpp | 110 ProfileSummaryInfo *PSI) { in isColdBlock() argument 120 if (PSI->hasInstrumentationProfile() || PSI->hasCSInstrumentationProfile()) { in isColdBlock() 126 return PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlock() 128 } else if (PSI->hasSampleProfile()) { in isColdBlock() 157 ProfileSummaryInfo *PSI = nullptr; in runOnMachineFunction() local 160 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction() 165 if (PSI->hasSampleProfile() && !PSI->isFunctionHotInCallGraph(&MF, *MBFI)) { in runOnMachineFunction() 181 else if (UseProfileData && isColdBlock(MBB, MBFI, PSI) && !SplitAllEHCode) in runOnMachineFunction() 193 if (!isColdBlock(*LP, MBFI, PSI)) in runOnMachineFunction()
|
| H A D | MachineSizeOpts.cpp | 28 ProfileSummaryInfo *PSI, in shouldOptimizeForSize() argument 31 return shouldFuncOptimizeForSizeImpl(MF, PSI, MBFI, QueryType); in shouldOptimizeForSize() 35 ProfileSummaryInfo *PSI, in shouldOptimizeForSize() argument 39 return shouldOptimizeForSizeImpl(MBB, PSI, MBFI, QueryType); in shouldOptimizeForSize() 43 ProfileSummaryInfo *PSI, in shouldOptimizeForSize() argument 47 if (!PSI || !MBFIW) in shouldOptimizeForSize() 50 return shouldOptimizeForSizeImpl(BlockFreq, PSI, &MBFIW->getMBFI(), in shouldOptimizeForSize()
|
| H A D | TailDuplication.cpp | 88 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction() local 89 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() 94 Duplicator.initMF(MF, PreRegAlloc, MBPI, MBFI ? MBFIW.get() : nullptr, PSI, in runOnMachineFunction()
|
| H A D | ExpandMemCmp.cpp | 832 ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI, in expandMemCmp() argument 856 llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI); in expandMemCmp() 893 const DataLayout &DL, ProfileSummaryInfo *PSI, 899 ProfileSummaryInfo *PSI, 924 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnFunction() local 925 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction() 931 auto PA = runImpl(F, TLI, TTI, TL, PSI, BFI, DT); in runOnFunction() 948 const DataLayout &DL, ProfileSummaryInfo *PSI, in runOnBlock() argument 1002 auto *PSI = FAM.getResult<ModuleAnalysisManagerFunctionProxy>(F) in run() local 1004 BlockFrequencyInfo *BFI = (PSI && PSI->hasProfileSummary()) in run() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 152 bool processFunction(ProfileSummaryInfo *PSI); 295 bool IndirectCallPromoter::processFunction(ProfileSummaryInfo *PSI) { in processFunction() argument 304 (PSI && PSI->hasProfileSummary() && !PSI->isHotCount(TotalCount))) in processFunction() 326 static bool promoteIndirectCalls(Module &M, ProfileSummaryInfo *PSI, bool InLTO, in promoteIndirectCalls() argument 346 bool FuncChanged = CallPromoter.processFunction(PSI); in promoteIndirectCalls() 362 ProfileSummaryInfo *PSI = &MAM.getResult<ProfileSummaryAnalysis>(M); in run() local 364 if (!promoteIndirectCalls(M, PSI, InLTO | ICPLTOMode, in run()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AlwaysInliner.cpp | 34 Module &M, bool InsertLifetime, ProfileSummaryInfo &PSI, in AlwaysInlineImpl() argument 65 InlineFunctionInfo IFI(GetAssumptionCache, &PSI, in AlwaysInlineImpl() 142 auto &PSI = getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnModule() local 150 return AlwaysInlineImpl(M, InsertLifetime, PSI, GetAssumptionCache, GetAAR, in runOnModule() 191 auto &PSI = MAM.getResult<ProfileSummaryAnalysis>(M); in run() local 193 bool Changed = AlwaysInlineImpl(M, InsertLifetime, PSI, GetAssumptionCache, in run()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineSizeOpts.h | 28 bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, 34 ProfileSummaryInfo *PSI, 40 ProfileSummaryInfo *PSI,
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/dma/ti/ |
| H A D | k3-pktdma.yaml | 17 PKTDMA only includes Split channels to service PSI-L based peripherals. 19 The peripherals can be PSI-L native or legacy, non PSI-L native peripherals 20 with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the 37 The first cell is the PSI-L thread ID of the remote (to PKTDMA) end. 42 Please refer to the device documentation for the PSI-L thread map and also 43 the PSI-L peripheral chapter for the correct thread ID.
|
| H A D | k3-udma.yaml | 29 on the Rx PSI-L interface. 35 All transfers within NAVSS is done between PSI-L source and destination 37 The peripherals serviced by UDMA can be PSI-L native (sa2ul, cpsw, etc) or 38 legacy, non PSI-L native peripherals. In the later case a special, small PDMA 39 is tasked to act as a bridge between the PSI-L fabric and the legacy 54 The cell is the PSI-L thread ID of the remote (to UDMAP) end. 59 Please refer to the device documentation for the PSI-L thread map and also 60 the PSI-L peripheral chapter for the correct thread ID.
|
| H A D | k3-bcdma.yaml | 23 Split channels can be used to service PSI-L based peripherals. 24 The peripherals can be PSI-L native or legacy, non PSI-L native peripherals 25 with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the 56 PSI-L thread ID of the remote (to BCDMA) end. 61 Please refer to the device documentation for the PSI-L thread map and 62 also the PSI-L peripheral chapter for the correct thread ID.
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopLoadElimination.cpp | 172 ProfileSummaryInfo* PSI) in LoadEliminationForLoop() argument 173 : L(L), LI(LI), LAI(LAI), DT(DT), BFI(BFI), PSI(PSI), PSE(LAI.getPSE()) {} in LoadEliminationForLoop() 575 llvm::shouldOptimizeForSize(HeaderBB, PSI, BFI, in processLoop() 625 ProfileSummaryInfo *PSI; member in __anone42e219c0311::LoadEliminationForLoop 634 ProfileSummaryInfo *PSI, in eliminateLoadsAcrossLoops() argument 660 LoadEliminationForLoop LEL(L, &LI, LAIs.getInfo(*L), &DT, BFI, PSI); in eliminateLoadsAcrossLoops() 679 auto *PSI = MAMProxy.getCachedResult<ProfileSummaryAnalysis>(*F.getParent()); in run() local 680 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in run() 684 bool Changed = eliminateLoadsAcrossLoops(F, LI, DT, BFI, PSI, &SE, &AC, LAIs); in run()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | OptimizationRemarkEmitter.cpp | 107 if (ProfileSummaryInfo *PSI = in runOnFunction() local 110 PSI->getOrCompHotCountThreshold()); in runOnFunction() 139 if (ProfileSummaryInfo *PSI = in run() local 142 PSI->getOrCompHotCountThreshold()); in run()
|
| H A D | ProfileSummaryInfo.cpp | 232 PSI.reset(new ProfileSummaryInfo(M)); in doInitialization() 237 PSI.reset(); in doFinalization() 249 ProfileSummaryInfo &PSI = AM.getResult<ProfileSummaryAnalysis>(M); in run() local 254 if (PSI.isFunctionEntryHot(&F)) in run() 256 else if (PSI.isFunctionEntryCold(&F)) in run()
|
| H A D | InlineCost.cpp | 253 ProfileSummaryInfo *PSI; member in __anoncf8652d10111::CallAnalyzer 498 ProfileSummaryInfo *PSI = nullptr, in CallAnalyzer() argument 501 PSI(PSI), F(Callee), DL(F.getParent()->getDataLayout()), ORE(ORE), in CallAnalyzer() 790 if (!PSI || !PSI->hasProfileSummary()) in isCostBenefitAnalysisEnabled() 802 if (!(PSI->hasInstrumentationProfile() || PSI->hasSampleProfile())) in isCostBenefitAnalysisEnabled() 1102 ProfileSummaryInfo *PSI = nullptr, in InlineCostCallAnalyzer() argument 1853 if (PSI && PSI->hasProfileSummary()) in isColdCallSite() 1878 if (PSI && PSI->hasProfileSummary() && PSI->isHotCallSite(Call, CallerBFI)) in getHotCallSiteThreshold() 1986 } else if (PSI) { in updateThreshold() 1989 if (PSI->isFunctionEntryHot(&Callee)) { in updateThreshold() [all …]
|
| H A D | ModuleSummaryAnalysis.cpp | 131 ProfileSummaryInfo *PSI) { in getHotness() argument 132 if (!PSI) in getHotness() 134 if (PSI->isHotCount(ProfileCount)) in getHotness() 136 if (PSI->isColdCount(ProfileCount)) in getHotness() 399 auto ScaledCount = PSI->getProfileCount(*CB, BFI); in computeFunctionSummary() 459 .updateHotness(getHotness(Candidate.Count, PSI)); in computeFunctionSummary() 812 ProfileSummaryInfo *PSI, in buildModuleSummaryIndex() argument 814 assert(PSI); in buildModuleSummaryIndex() 934 computeFunctionSummary(Index, M, F, BFI, PSI, DT, in buildModuleSummaryIndex() 1032 &PSI, in run() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PadShortFunction.cpp | 117 auto *PSI = in runOnMachineFunction() local 119 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() 136 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction()
|
| H A D | X86FixupBWInsts.cpp | 150 ProfileSummaryInfo *PSI = nullptr; member in __anon69dcfc2d0111::FixupBWInstPass 168 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction() 169 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() 456 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InlineCost.h | 282 ProfileSummaryInfo *PSI = nullptr, 296 ProfileSummaryInfo *PSI = nullptr, 321 ProfileSummaryInfo *PSI = nullptr, 330 ProfileSummaryInfo *PSI = nullptr,
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | GIMatchTableExecutor.h | 556 ProfileSummaryInfo *PSI = nullptr; variable 571 PSI = psi; 603 (PSI && BFI && CurMBB && llvm::shouldOptForSize(*CurMBB, PSI, BFI)); in shouldOptForSize()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.h | 247 AssumptionCache *AC, BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI) in LoopVectorizationLegality() argument 250 PSI(PSI) {} in LoopVectorizationLegality() 544 ProfileSummaryInfo *PSI; variable
|