Home
last modified time | relevance | path

Searched refs:PSI (Results 1 – 25 of 150) sorted by relevance

123456

/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DMachineSizeOpts.cpp32 ProfileSummaryInfo *PSI, in isColdBlock() argument
39 ProfileSummaryInfo *PSI, in isColdBlock() argument
82 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraph() argument
98 ProfileSummaryInfo *PSI, in isFunctionHotInCallGraphNthPercentile() argument
133 ProfileSummaryInfo *PSI, in isFunctionHotInCallGraphNthPercentile()
136 CutOff, MF, PSI, MBFI); in isFunctionHotInCallGraphNthPercentile()
142 CutOff, MF, PSI, MBFI); in isFunctionColdInCallGraphNthPercentile()
159 CutOff, MBB, PSI, MBFI); in isHotBlockNthPercentile()
188 MF, PSI, MBFI, QueryType); in shouldOptimizeForSize()
197 MBB, PSI, MBFI, QueryType); in shouldOptimizeForSize()
[all …]
H A DMachineFunctionSplitter.cpp160 ProfileSummaryInfo *PSI) { in isColdBlock() argument
166 return PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlock()
203 ProfileSummaryInfo *PSI = nullptr; in runOnMachineFunction() local
206 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction()
216 else if (UseProfileData && isColdBlock(MBB, MBFI, PSI) && !SplitAllEHCode) in runOnMachineFunction()
227 if (!isColdBlock(*LP, MBFI, PSI)) in runOnMachineFunction()
H A DTailDuplication.cpp88 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 DExpandMemCmp.cpp743 ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI, in expandMemCmp() argument
767 llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI); in expandMemCmp()
823 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnFunction() local
824 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
830 auto PA = runImpl(F, TLI, TTI, TL, PSI, BFI, DT); in runOnFunction()
846 const TargetLowering *TL, ProfileSummaryInfo *PSI,
851 const DataLayout &DL, ProfileSummaryInfo *PSI,
858 const DataLayout &DL, ProfileSummaryInfo *PSI, in runOnBlock() argument
869 expandMemCmp(CI, TTI, TL, &DL, PSI, BFI, DTU, Func == LibFunc_bcmp)) { in runOnBlock()
879 const TargetLowering *TL, ProfileSummaryInfo *PSI, in runImpl() argument
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DSizeOpts.h43 (PSI->hasSampleProfile() && in isPGSOColdCodeOnly()
45 (PSI->hasPartialSampleProfile() && in isPGSOColdCodeOnly()
54 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldFuncOptimizeForSizeImpl()
60 if (isPGSOColdCodeOnly(PSI)) in shouldFuncOptimizeForSizeImpl()
62 if (PSI->hasSampleProfile()) in shouldFuncOptimizeForSizeImpl()
66 PgsoCutoffSampleProf, F, PSI, *BFI); in shouldFuncOptimizeForSizeImpl()
74 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldOptimizeForSizeImpl()
80 if (isPGSOColdCodeOnly(PSI)) in shouldOptimizeForSizeImpl()
81 return AdapterT::isColdBlock(BBOrBlockFreq, PSI, BFI); in shouldOptimizeForSizeImpl()
82 if (PSI->hasSampleProfile()) in shouldOptimizeForSizeImpl()
[all …]
H A DSampleProfileLoaderBaseUtil.h41 ProfileSummaryInfo *PSI) const;
43 ProfileSummaryInfo *PSI) const;
46 ProfileSummaryInfo *PSI) const;
89 bool callsiteIsHot(const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI,
H A DCloning.h208 ProfileSummaryInfo *PSI = nullptr,
211 : CG(cg), GetAssumptionCache(GetAssumptionCache), PSI(PSI), in CG()
219 ProfileSummaryInfo *PSI; variable
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSizeOpts.cpp63 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraph()
65 return PSI->isFunctionColdInCallGraph(F, BFI); in isFunctionColdInCallGraph()
71 return PSI->isFunctionHotInCallGraphNthPercentile(CutOff, F, BFI); in isFunctionHotInCallGraphNthPercentile()
77 return PSI->isFunctionColdInCallGraphNthPercentile(CutOff, F, BFI); in isFunctionColdInCallGraphNthPercentile()
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()
[all …]
H A DSampleProfileLoaderBaseUtil.cpp69 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 …]
/openbsd/gnu/gcc/gcc/config/m32c/
H A Dprologue.md50 [(set (mem:SI (pre_dec:PSI (reg:PSI SP_REGNO)))
52 (set (reg:PSI FB_REGNO)
53 (reg:PSI SP_REGNO))
54 (set (reg:PSI SP_REGNO)
55 (minus:PSI (reg:PSI SP_REGNO)
96 [(set (reg:PSI SP_REGNO)
97 (reg:PSI FB_REGNO))
98 (set (reg:PSI FB_REGNO)
99 (mem:PSI (reg:PSI SP_REGNO)))
101 (plus:PSI (reg:PSI SP_REGNO)
[all …]
H A Dblkmov.md82 (mem:QI (match_operand:PSI 4 "ap_operand" "1")))
86 (plus:PSI (match_dup 3)
89 (plus:PSI (match_dup 4)
90 (zero_extend:PSI (match_dup 5))))]
115 (plus:PSI (match_dup 3)
118 (plus:PSI (match_dup 4)
119 (zero_extend:PSI (match_dup 5))))]
234 (plus:PSI (match_dup 2)
235 (unspec:PSI [(const_int 0)] UNS_SMOVU)))
237 (plus:PSI (match_dup 3)
[all …]
H A Dmov.md88 (match_operand:PSI 1 "m32c_any_operand"
150 ; Some PSI moves must be split.
153 (match_operand:PSI 1 "m32c_any_operand" ""))]
192 [(set (mem:SI (pre_dec:PSI (reg:PSI SP_REGNO)))
232 [(set (mem:QI (pre_dec:PSI (reg:PSI SP_REGNO)))
240 [(set (mem:HI (pre_dec:PSI (reg:PSI SP_REGNO)))
261 [(set (mem:HI (pre_dec:PSI (reg:PSI SP_REGNO)))
269 ; [(set (mem:PSI (pre_dec:PSI (reg:PSI SP_REGNO)))
278 [(set (mem:SI (pre_dec:PSI (reg:PSI SP_REGNO)))
308 (mem:HI (post_inc:PSI (reg:PSI SP_REGNO))))]
[all …]
H A Dshift.md176 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm")
177 (ashift:PSI (match_operand:PSI 1 "mra_operand" "0,0")
189 (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0")
200 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd,??Rmm")
201 (lshiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0")
213 [(parallel [(set (match_operand:PSI 0 "mra_operand" "")
214 (ashift:PSI (match_operand:PSI 1 "mra_operand" "")
223 [(parallel [(set (match_operand:PSI 0 "mra_operand" "")
224 (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "")
233 [(parallel [(set (match_operand:PSI 0 "mra_operand" "")
[all …]
H A Daddsub.md60 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "=Rpi,Raa,SdRpi,SdRpi,Rsp*Rmm, Rpi,Rpi")
61 (plus:PSI (match_operand:PSI 1 "m32c_nonimmediate_operand" "0,0,0,0,0, Raa,Rad")
62 (match_operand:PSI 2 "m32c_any_operand" "Is3,IS1,iSdRpi,?Rmm,i, i,IS2")))]
156 [(set (match_operand:PSI 0 "mra_operand" "=RpiSd,RpiSd,??Rmm,??Rmm")
157 (minus:PSI (match_operand:PSI 1 "mra_operand" "0,0,0,0")
158 (match_operand:PSI 2 "mrai_operand" "iRpiSd,?Rmm,iRpiSd,?Rmm")))]
/openbsd/gnu/usr.bin/gcc/gcc/config/mn10200/
H A Dmn10200.md363 (plus:PSI (match_operand:PSI 1 "general_operand" "%0")
458 (minus:PSI (match_operand:PSI 1 "general_operand" "0")
596 (and:PSI (match_operand:PSI 1 "general_operand" "")
608 (and:PSI (match_operand:PSI 1 "general_operand" "%0")
1213 (truncate:PSI
1224 (truncate:PSI
1236 (truncate:PSI
1398 (ashift:PSI (match_operand:PSI 1 "general_operand" "")
1429 (ashift:PSI (match_operand:PSI 1 "general_operand" "0")
1437 (lshiftrt:PSI (match_operand:PSI 1 "general_operand" "")
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopLoadElimination.cpp166 ProfileSummaryInfo* PSI) in LoadEliminationForLoop() argument
167 : L(L), LI(LI), LAI(LAI), DT(DT), BFI(BFI), PSI(PSI), PSE(LAI.getPSE()) {} in LoadEliminationForLoop()
568 llvm::shouldOptimizeForSize(HeaderBB, PSI, BFI, in processLoop()
618 ProfileSummaryInfo *PSI; member in __anon10e39c530311::LoadEliminationForLoop
627 ProfileSummaryInfo *PSI, in eliminateLoadsAcrossLoops() argument
653 LoadEliminationForLoop LEL(L, &LI, LAIs.getInfo(*L), &DT, BFI, PSI); in eliminateLoadsAcrossLoops()
680 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnFunction() local
681 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
687 return eliminateLoadsAcrossLoops(F, LI, DT, BFI, PSI, SE, /*AC*/ nullptr, in runOnFunction()
736 auto *PSI = MAMProxy.getCachedResult<ProfileSummaryAnalysis>(*F.getParent()); in run() local
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp152 bool processFunction(ProfileSummaryInfo *PSI);
298 bool ICallPromotionFunc::processFunction(ProfileSummaryInfo *PSI) { in processFunction() argument
307 (PSI && PSI->hasProfileSummary() && !PSI->isHotCount(TotalCount))) in processFunction()
329 static bool promoteIndirectCalls(Module &M, ProfileSummaryInfo *PSI, in promoteIndirectCalls() argument
357 bool FuncChanged = ICallPromotion.processFunction(PSI); in promoteIndirectCalls()
373 ProfileSummaryInfo *PSI = &AM.getResult<ProfileSummaryAnalysis>(M); in run() local
375 if (!promoteIndirectCalls(M, PSI, InLTO | ICPLTOMode, in run()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineSizeOpts.h28 bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI,
34 ProfileSummaryInfo *PSI,
40 ProfileSummaryInfo *PSI,
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DOptimizationRemarkEmitter.cpp107 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 DInlineCost.cpp242 ProfileSummaryInfo *PSI; member in __anonedc2a5c80111::CallAnalyzer
487 ProfileSummaryInfo *PSI = nullptr, in CallAnalyzer() argument
490 PSI(PSI), F(Callee), DL(F.getParent()->getDataLayout()), ORE(ORE), in CallAnalyzer()
776 if (!PSI || !PSI->hasProfileSummary()) in isCostBenefitAnalysisEnabled()
788 if (!PSI->hasInstrumentationProfile()) in isCostBenefitAnalysisEnabled()
1033 ProfileSummaryInfo *PSI = nullptr, in InlineCostCallAnalyzer() argument
1779 if (PSI && PSI->hasProfileSummary()) in isColdCallSite()
1804 if (PSI && PSI->hasProfileSummary() && PSI->isHotCallSite(Call, CallerBFI)) in getHotCallSiteThreshold()
1911 } else if (PSI) { in updateThreshold()
1914 if (PSI->isFunctionEntryHot(&Callee)) { in updateThreshold()
[all …]
H A DModuleSummaryAnalysis.cpp129 ProfileSummaryInfo *PSI) { in getHotness() argument
130 if (!PSI) in getHotness()
132 if (PSI->isHotCount(ProfileCount)) in getHotness()
134 if (PSI->isColdCount(ProfileCount)) in getHotness()
377 auto ScaledCount = PSI->getProfileCount(*CB, BFI); in computeFunctionSummary()
425 .updateHotness(getHotness(Candidate.Count, PSI)); in computeFunctionSummary()
740 ProfileSummaryInfo *PSI, in buildModuleSummaryIndex() argument
742 assert(PSI); in buildModuleSummaryIndex()
858 computeFunctionSummary(Index, M, F, BFI, PSI, DT, in buildModuleSummaryIndex()
956 &PSI, in run()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp117 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 DX86FixupBWInsts.cpp151 ProfileSummaryInfo *PSI; member in __anonb64d73440111::FixupBWInstPass
169 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction()
170 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
458 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
H A DInstructionSelector.h447 ProfileSummaryInfo *PSI = nullptr; variable
463 PSI = psi; in setupMF()
491 (PSI && BFI && CurMBB && llvm::shouldOptForSize(*CurMBB, PSI, BFI)); in shouldOptForSize()
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DInlineCost.h281 ProfileSummaryInfo *PSI = nullptr,
295 ProfileSummaryInfo *PSI = nullptr,
320 ProfileSummaryInfo *PSI = nullptr,
329 ProfileSummaryInfo *PSI = nullptr,

123456