| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A 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 …]
|
| H A D | MachineFunctionSplitter.cpp | 83 ProfileSummaryInfo *PSI) { in isColdBlock() argument 89 return PSI->isColdCountNthPercentile(PercentileCutoff, *Count); in isColdBlock() 124 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction() local 133 else if (isColdBlock(MBB, MBFI, PSI)) in runOnMachineFunction() 140 if (!isColdBlock(*LP, MBFI, PSI)) in runOnMachineFunction()
|
| 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
| H A D | SizeOpts.h | 41 static inline bool isPGSOColdCodeOnly(ProfileSummaryInfo *PSI) { in isPGSOColdCodeOnly() argument 43 (PSI->hasInstrumentationProfile() && PGSOColdCodeOnlyForInstrPGO) || in isPGSOColdCodeOnly() 44 (PSI->hasSampleProfile() && in isPGSOColdCodeOnly() 45 ((!PSI->hasPartialSampleProfile() && PGSOColdCodeOnlyForSamplePGO) || in isPGSOColdCodeOnly() 46 (PSI->hasPartialSampleProfile() && in isPGSOColdCodeOnly() 48 (PGSOLargeWorkingSetSizeOnly && !PSI->hasLargeWorkingSetSize()); in isPGSOColdCodeOnly() 52 bool shouldFuncOptimizeForSizeImpl(const FuncT *F, ProfileSummaryInfo *PSI, in shouldFuncOptimizeForSizeImpl() argument 55 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldFuncOptimizeForSizeImpl() 61 if (isPGSOColdCodeOnly(PSI)) in shouldFuncOptimizeForSizeImpl() 62 return AdapterT::isFunctionColdInCallGraph(F, PSI, *BFI); in shouldFuncOptimizeForSizeImpl() [all …]
|
| H A D | SampleProfileLoaderBaseUtil.h | 45 ProfileSummaryInfo *PSI) const; 47 ProfileSummaryInfo *PSI) const; 50 ProfileSummaryInfo *PSI) const; 93 bool callsiteIsHot(const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI,
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A 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 …]
|
| H A D | SampleProfileLoaderBaseUtil.cpp | 56 bool callsiteIsHot(const FunctionSamples *CallsiteFS, ProfileSummaryInfo *PSI, in callsiteIsHot() argument 61 assert(PSI && "PSI is expected to be non null"); in callsiteIsHot() 64 return !PSI->isColdCount(CallsiteTotalSamples); in callsiteIsHot() 66 return PSI->isHotCount(CallsiteTotalSamples); in callsiteIsHot() 90 ProfileSummaryInfo *PSI) const { in countUsedRecords() 103 if (callsiteIsHot(CalleeSamples, PSI, ProfAccForSymsInList)) in countUsedRecords() 104 Count += countUsedRecords(CalleeSamples, PSI); in countUsedRecords() 115 ProfileSummaryInfo *PSI) const { in countBodyRecords() 122 if (callsiteIsHot(CalleeSamples, PSI, ProfAccForSymsInList)) in countBodyRecords() 123 Count += countBodyRecords(CalleeSamples, PSI); in countBodyRecords() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/m32c/ |
| H A D | blkmov.md | 79 [(set (mem:QI (match_operand:PSI 3 "ap_operand" "0")) 80 (mem:QI (match_operand:PSI 4 "ap_operand" "1"))) 83 (set (match_operand:PSI 0 "ap_operand" "=Ra1") 84 (plus:PSI (match_dup 3) 85 (zero_extend:PSI (match_operand:HI 5 "m32c_r3_operand" "2")))) 86 (set (match_operand:PSI 1 "ap_operand" "=Ra0") 87 (plus:PSI (match_dup 4) 88 (zero_extend:PSI (match_dup 5))))] 108 [(set (mem:HI (match_operand:PSI 3 "ap_operand" "0")) 109 (mem:HI (match_operand:PSI 4 "ap_operand" "1"))) [all …]
|
| H A D | prologue.md | 53 [(set (mem:SI (plus:PSI (reg:PSI SP_REGNO) (const_int -4))) 55 (set (reg:PSI FB_REGNO) 56 (plus:PSI (reg:PSI SP_REGNO) (const_int -4))) 57 (set (reg:PSI SP_REGNO) 58 (minus:PSI (reg:PSI SP_REGNO) 88 [(match_operand:PSI 0 "" "")] 131 [(set (reg:PSI SP_REGNO) 132 (plus:PSI (reg:PSI FB_REGNO) 134 (set (reg:PSI FB_REGNO) 135 (mem:PSI (reg:PSI FB_REGNO))) [all …]
|
| H A D | mov.md | 109 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" 111 (match_operand:PSI 1 "m32c_any_operand" 173 ; Some PSI moves must be split. 175 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "") 176 (match_operand:PSI 1 "m32c_any_operand" ""))] 186 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "") 187 (match_operand:PSI 1 "m32c_any_operand" ""))] 215 [(set (mem:SI (pre_dec:PSI (reg:PSI SP_REGNO))) 255 [(set (mem:QI (pre_dec:PSI (reg:PSI SP_REGNO))) 263 [(set (mem:HI (pre_dec:PSI (reg:PSI SP_REGNO))) [all …]
|
| H A D | shift.md | 174 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm") 175 (ashift:PSI (match_operand:PSI 1 "mra_operand" "0,0") 186 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm") 187 (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0") 198 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd,??Rmm") 199 (lshiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0") 211 [(parallel [(set (match_operand:PSI 0 "mra_operand" "") 212 (ashift:PSI (match_operand:PSI 1 "mra_operand" "") 221 [(parallel [(set (match_operand:PSI 0 "mra_operand" "") 222 (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "") [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/m32c/ |
| H A D | blkmov.md | 79 [(set (mem:QI (match_operand:PSI 3 "ap_operand" "0")) 80 (mem:QI (match_operand:PSI 4 "ap_operand" "1"))) 83 (set (match_operand:PSI 0 "ap_operand" "=Ra1") 84 (plus:PSI (match_dup 3) 85 (zero_extend:PSI (match_operand:HI 5 "m32c_r3_operand" "2")))) 86 (set (match_operand:PSI 1 "ap_operand" "=Ra0") 87 (plus:PSI (match_dup 4) 88 (zero_extend:PSI (match_dup 5))))] 108 [(set (mem:HI (match_operand:PSI 3 "ap_operand" "0")) 109 (mem:HI (match_operand:PSI 4 "ap_operand" "1"))) [all …]
|
| H A D | prologue.md | 53 [(set (mem:SI (plus:PSI (reg:PSI SP_REGNO) (const_int -4))) 55 (set (reg:PSI FB_REGNO) 56 (plus:PSI (reg:PSI SP_REGNO) (const_int -4))) 57 (set (reg:PSI SP_REGNO) 58 (minus:PSI (reg:PSI SP_REGNO) 88 [(match_operand:PSI 0 "" "")] 131 [(set (reg:PSI SP_REGNO) 132 (plus:PSI (reg:PSI FB_REGNO) 134 (set (reg:PSI FB_REGNO) 135 (mem:PSI (reg:PSI FB_REGNO))) [all …]
|
| H A D | mov.md | 109 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" 111 (match_operand:PSI 1 "m32c_any_operand" 173 ; Some PSI moves must be split. 175 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "") 176 (match_operand:PSI 1 "m32c_any_operand" ""))] 186 [(set (match_operand:PSI 0 "m32c_nonimmediate_operand" "") 187 (match_operand:PSI 1 "m32c_any_operand" ""))] 215 [(set (mem:SI (pre_dec:PSI (reg:PSI SP_REGNO))) 255 [(set (mem:QI (pre_dec:PSI (reg:PSI SP_REGNO))) 263 [(set (mem:HI (pre_dec:PSI (reg:PSI SP_REGNO))) [all …]
|
| H A D | shift.md | 174 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm") 175 (ashift:PSI (match_operand:PSI 1 "mra_operand" "0,0") 186 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd*Rmm,R02RaaSd*Rmm") 187 (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0") 198 [(set (match_operand:PSI 0 "mra_operand" "=R02RaaSd,??Rmm") 199 (lshiftrt:PSI (match_operand:PSI 1 "mra_operand" "0,0") 211 [(parallel [(set (match_operand:PSI 0 "mra_operand" "") 212 (ashift:PSI (match_operand:PSI 1 "mra_operand" "") 221 [(parallel [(set (match_operand:PSI 0 "mra_operand" "") 222 (ashiftrt:PSI (match_operand:PSI 1 "mra_operand" "") [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/avr/ |
| H A D | avr.md | 252 (define_mode_iterator QISI [QI HI PSI SI]) 253 (define_mode_iterator QIDI [QI HI PSI SI DI]) 254 (define_mode_iterator QIPSI [QI HI PSI]) 255 (define_mode_iterator HISI [HI PSI SI]) 261 (define_mode_iterator ALL234 [HI SI PSI 269 (define_mode_iterator ALLs234 [HI SI PSI 276 SF PSI]) 279 (define_mode_iterator ORDERED234 [HI SI PSI 284 (define_mode_iterator SPLIT34 [SI SF PSI 422 PSI]) [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 212 bool processFunction(ProfileSummaryInfo *PSI); 357 bool ICallPromotionFunc::processFunction(ProfileSummaryInfo *PSI) { in processFunction() argument 366 (PSI && PSI->hasProfileSummary() && !PSI->isHotCount(TotalCount))) in processFunction() 388 static bool promoteIndirectCalls(Module &M, ProfileSummaryInfo *PSI, in promoteIndirectCalls() argument 416 bool FuncChanged = ICallPromotion.processFunction(PSI); in promoteIndirectCalls() 431 ProfileSummaryInfo *PSI = in runOnModule() local 435 return promoteIndirectCalls(M, PSI, InLTO | ICPLTOMode, in runOnModule() 441 ProfileSummaryInfo *PSI = &AM.getResult<ProfileSummaryAnalysis>(M); in run() local 443 if (!promoteIndirectCalls(M, PSI, InLTO | ICPLTOMode, in run()
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/msp430/ |
| H A D | msp430.md | 67 (define_mode_iterator QHI [QI HI PSI]) 94 [(set (mem:PSI (pre_dec:PSI (reg:PSI SP_REGNO))) 95 (match_operand:PSI 0 "register_operand" "r"))] 115 [(set (match_operand:PSI 0 "register_operand" "=r") 116 (mem:PSI (post_inc:PSI (reg:PSI SP_REGNO))))] 187 (subreg:QI (match_operand:PSI 1 "msp430_general_operand" "r") 2))] 220 (subreg:SI (match_operand:PSI 1 "msp430_symbol_operand" "i") 0))] 246 [(set (match_operand:PSI 0 "msp430_general_dst_operand" "=r,r,r,Ya,rm") 247 (match_operand:PSI 1 "msp430_general_operand" "N,O,riYa,r,rmi"))] 258 ; order to prevent reload from converting (set:SI (SUBREG:PSI (SI))) [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/avr/ |
| H A D | avr.md | 251 (define_mode_iterator QISI [QI HI PSI SI]) 252 (define_mode_iterator QIDI [QI HI PSI SI DI]) 253 (define_mode_iterator HISI [HI PSI SI]) 263 SF PSI]) 266 (define_mode_iterator ORDERED234 [HI SI PSI 271 (define_mode_iterator SPLIT34 [SI SF PSI 403 PSI]) 586 (mem:ALL1 (lo_sum:PSI (match_operand:QI 1 "register_operand" "r,r") 607 (mem:MOVMODE (lo_sum:PSI (reg:QI 21) 874 (set (match_operand:PSI 0 "l_register_operand" "") [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | LoopLoadElimination.cpp | 168 ProfileSummaryInfo* PSI) in LoadEliminationForLoop() argument 169 : L(L), LI(LI), LAI(LAI), DT(DT), BFI(BFI), PSI(PSI), PSE(LAI.getPSE()) {} in LoadEliminationForLoop() 554 llvm::shouldOptimizeForSize(HeaderBB, PSI, BFI, in processLoop() 604 ProfileSummaryInfo *PSI; member in __anon8c5f5e510311::LoadEliminationForLoop 612 BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI, in eliminateLoadsAcrossLoops() argument 638 LoadEliminationForLoop LEL(L, &LI, GetLAI(*L), &DT, BFI, PSI); in eliminateLoadsAcrossLoops() 663 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnFunction() local 664 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction() 671 F, LI, DT, BFI, PSI, SE, /*AC*/ nullptr, in runOnFunction() 719 auto *PSI = MAMProxy.getCachedResult<ProfileSummaryAnalysis>(*F.getParent()); in run() local [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/msp430/ |
| H A D | msp430.md | 159 (define_mode_iterator QHI [QI HI PSI]) 160 (define_mode_iterator HPSI [HI PSI]) 161 (define_mode_iterator HDI [HI PSI SI DI]) 196 [(set (mem:PSI (pre_dec:PSI (reg:PSI SP_REGNO))) 197 (match_operand:PSI 0 "register_operand" "r"))] 222 [(set (match_operand:PSI 0 "register_operand" "=r") 223 (mem:PSI (post_inc:PSI (reg:PSI SP_REGNO))))] 308 (subreg:QI (match_operand:PSI 1 "msp430_general_operand" "r") 2))] 345 (subreg:SI (match_operand:PSI 1 "msp430_symbol_operand" "i") 0))] 373 [(set (match_operand:PSI 0 "msp430_general_dst_operand" "=r,r,r,Ya,rm") [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | MachineSizeOpts.h | 28 bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, 34 ProfileSummaryInfo *PSI, 40 ProfileSummaryInfo *PSI,
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | OptimizationRemarkEmitter.cpp | 105 if (ProfileSummaryInfo *PSI = in runOnFunction() local 108 PSI->getOrCompHotCountThreshold()); in runOnFunction() 137 if (ProfileSummaryInfo *PSI = in run() local 140 PSI->getOrCompHotCountThreshold()); in run()
|
| H A D | ModuleSummaryAnalysis.cpp | 126 ProfileSummaryInfo *PSI) { in getHotness() argument 127 if (!PSI) in getHotness() 129 if (PSI->isHotCount(ProfileCount)) in getHotness() 131 if (PSI->isColdCount(ProfileCount)) in getHotness() 239 BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI, DominatorTree &DT, in computeFunctionSummary() argument 339 auto ScaledCount = PSI->getProfileCount(*CB, BFI); in computeFunctionSummary() 340 auto Hotness = ScaledCount ? getHotness(ScaledCount.getValue(), PSI) in computeFunctionSummary() 386 .updateHotness(getHotness(Candidate.Count, PSI)); in computeFunctionSummary() 646 ProfileSummaryInfo *PSI, in buildModuleSummaryIndex() argument 648 assert(PSI); in buildModuleSummaryIndex() [all …]
|
| H A D | InlineCost.cpp | 183 ProfileSummaryInfo *PSI; member in __anon797094460111::CallAnalyzer 417 ProfileSummaryInfo *PSI = nullptr, in CallAnalyzer() argument 420 PSI(PSI), F(Callee), DL(F.getParent()->getDataLayout()), ORE(ORE), in CallAnalyzer() 563 GetAssumptionCache, GetBFI, PSI, ORE, false); in onLoweredCall() 677 if (!PSI || !PSI->hasProfileSummary()) in isCostBenefitAnalysisEnabled() 689 if (!PSI->hasInstrumentationProfile()) in isCostBenefitAnalysisEnabled() 702 if (!PSI->isHotCallSite(CandidateCall, CallerBFI)) in isCostBenefitAnalysisEnabled() 802 APInt RHS(128, PSI->getOrCompHotCountThreshold()); in costBenefitAnalysis() 908 ProfileSummaryInfo *PSI = nullptr, in InlineCostCallAnalyzer() argument 911 : CallAnalyzer(Callee, Call, TTI, GetAssumptionCache, GetBFI, PSI, ORE), in InlineCostCallAnalyzer() [all …]
|