| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/ |
| D | MachineSizeOpts.cpp | 32 ProfileSummaryInfo *PSI, in isColdBlock() argument 35 return Count && PSI->isColdCount(*Count); in isColdBlock() 39 ProfileSummaryInfo *PSI, in isColdBlock() argument 42 return Count && PSI->isColdCount(*Count); in isColdBlock() 48 ProfileSummaryInfo *PSI, in isHotBlockNthPercentile() argument 51 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 56 ProfileSummaryInfo *PSI, in isHotBlockNthPercentile() argument 59 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile() 64 ProfileSummaryInfo *PSI, in isColdBlockNthPercentile() argument 67 return Count && PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlockNthPercentile() [all …]
|
| D | MachineFunctionSplitter.cpp | 160 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()
|
| 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()
|
| D | ExpandMemCmp.cpp | 743 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/src/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
| D | SizeOpts.h | 40 static inline bool isPGSOColdCodeOnly(ProfileSummaryInfo *PSI) { in isPGSOColdCodeOnly() argument 42 (PSI->hasInstrumentationProfile() && PGSOColdCodeOnlyForInstrPGO) || in isPGSOColdCodeOnly() 43 (PSI->hasSampleProfile() && in isPGSOColdCodeOnly() 44 ((!PSI->hasPartialSampleProfile() && PGSOColdCodeOnlyForSamplePGO) || in isPGSOColdCodeOnly() 45 (PSI->hasPartialSampleProfile() && in isPGSOColdCodeOnly() 47 (PGSOLargeWorkingSetSizeOnly && !PSI->hasLargeWorkingSetSize()); in isPGSOColdCodeOnly() 51 bool shouldFuncOptimizeForSizeImpl(const FuncT *F, ProfileSummaryInfo *PSI, in shouldFuncOptimizeForSizeImpl() argument 54 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldFuncOptimizeForSizeImpl() 60 if (isPGSOColdCodeOnly(PSI)) in shouldFuncOptimizeForSizeImpl() 61 return AdapterT::isFunctionColdInCallGraph(F, PSI, *BFI); in shouldFuncOptimizeForSizeImpl() [all …]
|
| D | SampleProfileLoaderBaseUtil.h | 41 ProfileSummaryInfo *PSI) const; 43 ProfileSummaryInfo *PSI) const; 46 ProfileSummaryInfo *PSI) const; 89 bool callsiteIsHot(const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI,
|
| D | Cloning.h | 208 ProfileSummaryInfo *PSI = nullptr, 211 : CG(cg), GetAssumptionCache(GetAssumptionCache), PSI(PSI), in CG() 219 ProfileSummaryInfo *PSI; variable
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| D | SizeOpts.cpp | 63 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraph() 65 return PSI->isFunctionColdInCallGraph(F, BFI); in isFunctionColdInCallGraph() 69 ProfileSummaryInfo *PSI, in isFunctionHotInCallGraphNthPercentile() 71 return PSI->isFunctionHotInCallGraphNthPercentile(CutOff, F, BFI); in isFunctionHotInCallGraphNthPercentile() 75 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraphNthPercentile() 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() [all …]
|
| D | SampleProfileLoaderBaseUtil.cpp | 64 bool callsiteIsHot(const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI, in callsiteIsHot() argument 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() [all …]
|
| /openbsd/src/gnu/gcc/gcc/config/m32c/ |
| D | prologue.md | 50 [(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) 80 [(match_operand:PSI 0 "" "")] 96 [(set (reg:PSI SP_REGNO) 97 (reg:PSI FB_REGNO)) 98 (set (reg:PSI FB_REGNO) 99 (mem:PSI (reg:PSI SP_REGNO))) [all …]
|
| D | blkmov.md | 81 [(set (mem:QI (match_operand:PSI 3 "ap_operand" "0")) 82 (mem:QI (match_operand:PSI 4 "ap_operand" "1"))) 85 (set (match_operand:PSI 0 "ap_operand" "=Ra1") 86 (plus:PSI (match_dup 3) 87 (zero_extend:PSI (match_operand:HI 5 "m32c_r3_operand" "2")))) 88 (set (match_operand:PSI 1 "ap_operand" "=Ra0") 89 (plus:PSI (match_dup 4) 90 (zero_extend:PSI (match_dup 5))))] 110 [(set (mem:HI (match_operand:PSI 3 "ap_operand" "0")) 111 (mem:HI (match_operand:PSI 4 "ap_operand" "1"))) [all …]
|
| D | mov.md | 86 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" 88 (match_operand:PSI 1 "m32c_any_operand" 150 ; Some PSI moves must be split. 152 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "") 153 (match_operand:PSI 1 "m32c_any_operand" ""))] 163 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "") 164 (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))) [all …]
|
| D | shift.md | 176 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm") 177 (ashift:PSI (match_operand:PSI 1 "mra_operand" "0,0") 188 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm") 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" "") [all …]
|
| D | addsub.md | 60 [(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/src/gnu/usr.bin/gcc/gcc/config/mn10200/ |
| D | mn10200.md | 129 [(set (match_operand:PSI 0 "general_operand" "") 130 (match_operand:PSI 1 "general_operand" ""))] 147 [(set (match_operand:PSI 0 "register_operand" "=a") 148 (match_operand:PSI 1 "constant_memory_operand" ""))] 154 [(set (match_operand:PSI 0 "constant_memory_operand" "=X") 155 (match_operand:PSI 1 "register_operand" "a"))] 163 [(set (match_operand:PSI 0 "general_operand" "=d,a?d,?da,a,m,?d,m") 164 (match_operand:PSI 1 "general_operand" "0,I,?dai,m,a,m,?d"))] 316 [(set (cc0) (match_operand:PSI 0 "nonimmediate_operand" "da"))] 328 [(set (cc0) (zero_extend:PSI (match_operand:QI 0 "memory_operand" "d")))] [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| D | LoopLoadElimination.cpp | 166 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 __anonb7d95a220311::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/src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| D | IndirectCallPromotion.cpp | 152 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/src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| D | MachineSizeOpts.h | 28 bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, 34 ProfileSummaryInfo *PSI, 40 ProfileSummaryInfo *PSI,
|
| /openbsd/src/gnu/llvm/llvm/lib/Analysis/ |
| 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()
|
| D | InlineCost.cpp | 242 ProfileSummaryInfo *PSI; member in __anon66fc65d70111::CallAnalyzer 487 ProfileSummaryInfo *PSI = nullptr, in CallAnalyzer() argument 490 PSI(PSI), F(Callee), DL(F.getParent()->getDataLayout()), ORE(ORE), in CallAnalyzer() 679 GetAssumptionCache, GetBFI, PSI, ORE, false); in onLoweredCall() 776 if (!PSI || !PSI->hasProfileSummary()) in isCostBenefitAnalysisEnabled() 788 if (!PSI->hasInstrumentationProfile()) in isCostBenefitAnalysisEnabled() 801 if (!PSI->isHotCallSite(CandidateCall, CallerBFI)) in isCostBenefitAnalysisEnabled() 902 APInt RHS(128, PSI->getOrCompHotCountThreshold()); in costBenefitAnalysis() 1033 ProfileSummaryInfo *PSI = nullptr, in InlineCostCallAnalyzer() argument 1036 : CallAnalyzer(Callee, Call, TTI, GetAssumptionCache, GetBFI, PSI, ORE), in InlineCostCallAnalyzer() [all …]
|
| D | ModuleSummaryAnalysis.cpp | 129 ProfileSummaryInfo *PSI) { in getHotness() argument 130 if (!PSI) in getHotness() 132 if (PSI->isHotCount(ProfileCount)) in getHotness() 134 if (PSI->isColdCount(ProfileCount)) in getHotness() 255 BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI, DominatorTree &DT, in computeFunctionSummary() argument 377 auto ScaledCount = PSI->getProfileCount(*CB, BFI); in computeFunctionSummary() 378 auto Hotness = ScaledCount ? getHotness(*ScaledCount, PSI) in computeFunctionSummary() 425 .updateHotness(getHotness(Candidate.Count, PSI)); in computeFunctionSummary() 740 ProfileSummaryInfo *PSI, in buildModuleSummaryIndex() argument 742 assert(PSI); in buildModuleSummaryIndex() [all …]
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/X86/ |
| 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()
|
| D | X86FixupBWInsts.cpp | 151 ProfileSummaryInfo *PSI; member in __anonaceaac730111::FixupBWInstPass 169 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction() 170 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() 458 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/ |
| D | InstructionSelector.h | 447 ProfileSummaryInfo *PSI = nullptr; variable 463 PSI = psi; in setupMF() 491 (PSI && BFI && CurMBB && llvm::shouldOptForSize(*CurMBB, PSI, BFI)); in shouldOptForSize()
|
| /openbsd/src/gnu/llvm/llvm/include/llvm/Analysis/ |
| D | InlineCost.h | 281 ProfileSummaryInfo *PSI = nullptr, 295 ProfileSummaryInfo *PSI = nullptr, 320 ProfileSummaryInfo *PSI = nullptr, 329 ProfileSummaryInfo *PSI = nullptr,
|