Home
last modified time | relevance | path

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

12345

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineSizeOpts.cpp30 ProfileSummaryInfo *PSI, in isColdBlock() argument
33 return Count && PSI->isColdCount(*Count); in isColdBlock()
39 ProfileSummaryInfo *PSI, in isHotBlockNthPercentile() argument
42 return Count && PSI->isHotCountNthPercentile(PercentileCutoff, *Count); in isHotBlockNthPercentile()
49 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraph() argument
52 if (!PSI->isColdCount(FunctionCount.getCount())) in isFunctionColdInCallGraph()
55 if (!isColdBlock(&MBB, PSI, &MBFI)) in isFunctionColdInCallGraph()
65 ProfileSummaryInfo *PSI, in isFunctionHotInCallGraphNthPercentile() argument
68 if (PSI->isHotCountNthPercentile(PercentileCutoff, in isFunctionHotInCallGraphNthPercentile()
72 if (isHotBlockNthPercentile(PercentileCutoff, &MBB, PSI, &MBFI)) in isFunctionHotInCallGraphNthPercentile()
[all …]
DTailDuplication.cpp87 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction() local
88 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
91 Duplicator.initMF(MF, PreRegAlloc, MBPI, MBFI, PSI, /*LayoutMode=*/false); in runOnMachineFunction()
DExpandMemCmp.cpp728 ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI) { in expandMemCmp() argument
750 llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI); in expandMemCmp()
808 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnFunction() local
809 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
812 auto PA = runImpl(F, TLI, TTI, TL, PSI, BFI); in runOnFunction()
828 ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI);
832 const DataLayout& DL, ProfileSummaryInfo *PSI,
839 const DataLayout& DL, ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI) { in runOnBlock() argument
848 expandMemCmp(CI, TTI, TL, &DL, PSI, BFI)) { in runOnBlock()
858 const TargetLowering* TL, ProfileSummaryInfo *PSI, in runImpl() argument
[all …]
DMachineCombiner.cpp74 ProfileSummaryInfo *PSI; member in __anon8c2fd1240111::MachineCombiner
519 bool OptForSize = OptSize || llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in combineInstructions()
653 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction()
654 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DSizeOpts.h42 bool shouldFuncOptimizeForSizeImpl(const FuncT *F, ProfileSummaryInfo *PSI, in shouldFuncOptimizeForSizeImpl() argument
45 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldFuncOptimizeForSizeImpl()
57 (PGSOLargeWorkingSetSizeOnly && !PSI->hasLargeWorkingSetSize())) { in shouldFuncOptimizeForSizeImpl()
59 return AdapterT::isFunctionColdInCallGraph(F, PSI, *BFI); in shouldFuncOptimizeForSizeImpl()
62 PSI->hasSampleProfile() ? PgsoCutoffSampleProf : PgsoCutoffInstrProf, in shouldFuncOptimizeForSizeImpl()
63 F, PSI, *BFI); in shouldFuncOptimizeForSizeImpl()
67 bool shouldOptimizeForSizeImpl(const BlockT *BB, ProfileSummaryInfo *PSI, in shouldOptimizeForSizeImpl() argument
70 if (!PSI || !BFI || !PSI->hasProfileSummary()) in shouldOptimizeForSizeImpl()
82 (PGSOLargeWorkingSetSizeOnly && !PSI->hasLargeWorkingSetSize())) { in shouldOptimizeForSizeImpl()
84 return AdapterT::isColdBlock(BB, PSI, BFI); in shouldOptimizeForSizeImpl()
[all …]
DCloning.h178 ProfileSummaryInfo *PSI = nullptr,
181 : CG(cg), GetAssumptionCache(GetAssumptionCache), PSI(PSI), in CG()
188 ProfileSummaryInfo *PSI; variable
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSizeOpts.cpp53 ProfileSummaryInfo *PSI, in isFunctionColdInCallGraph()
55 return PSI->isFunctionColdInCallGraph(F, BFI); in isFunctionColdInCallGraph()
59 ProfileSummaryInfo *PSI, in isFunctionHotInCallGraphNthPercentile()
61 return PSI->isFunctionHotInCallGraphNthPercentile(CutOff, F, BFI); in isFunctionHotInCallGraphNthPercentile()
64 ProfileSummaryInfo *PSI, in isColdBlock()
66 return PSI->isColdBlock(BB, BFI); in isColdBlock()
70 ProfileSummaryInfo *PSI, in isHotBlockNthPercentile()
72 return PSI->isHotBlockNthPercentile(CutOff, BB, BFI); in isHotBlockNthPercentile()
77 bool llvm::shouldOptimizeForSize(const Function *F, ProfileSummaryInfo *PSI, in shouldOptimizeForSize() argument
80 return shouldFuncOptimizeForSizeImpl<BasicBlockBFIAdapter>(F, PSI, BFI, in shouldOptimizeForSize()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp213 bool processFunction(ProfileSummaryInfo *PSI);
352 bool ICallPromotionFunc::processFunction(ProfileSummaryInfo *PSI) { in processFunction() argument
361 (PSI && PSI->hasProfileSummary() && !PSI->isHotCount(TotalCount))) in processFunction()
383 static bool promoteIndirectCalls(Module &M, ProfileSummaryInfo *PSI, in promoteIndirectCalls() argument
412 bool FuncChanged = ICallPromotion.processFunction(PSI); in promoteIndirectCalls()
427 ProfileSummaryInfo *PSI = in runOnModule() local
431 return promoteIndirectCalls(M, PSI, InLTO | ICPLTOMode, in runOnModule()
437 ProfileSummaryInfo *PSI = &AM.getResult<ProfileSummaryAnalysis>(M); in run() local
439 if (!promoteIndirectCalls(M, PSI, InLTO | ICPLTOMode, in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopLoadElimination.cpp168 ProfileSummaryInfo* PSI) in LoadEliminationForLoop() argument
169 : L(L), LI(LI), LAI(LAI), DT(DT), BFI(BFI), PSI(PSI), PSE(LAI.getPSE()) {} in LoadEliminationForLoop()
548 llvm::shouldOptimizeForSize(HeaderBB, PSI, BFI, in processLoop()
594 ProfileSummaryInfo *PSI; member in __anon71a4a3320311::LoadEliminationForLoop
602 BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI, in eliminateLoadsAcrossLoops() argument
621 LoadEliminationForLoop LEL(L, &LI, GetLAI(*L), &DT, BFI, PSI); in eliminateLoadsAcrossLoops()
646 auto *PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnFunction() local
647 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in runOnFunction()
653 F, LI, DT, BFI, PSI, in runOnFunction()
701 auto *PSI = MAM.getCachedResult<ProfileSummaryAnalysis>(*F.getParent()); in run() local
[all …]
DLoopUnrollPass.cpp179 BlockFrequencyInfo *BFI, ProfileSummaryInfo *PSI, int OptLevel, in gatherUnrollingPreferences() argument
216 llvm::shouldOptimizeForSize(L->getHeader(), PSI, BFI, in gatherUnrollingPreferences()
1017 ProfileSummaryInfo *PSI, bool PreserveLCSSA, int OptLevel, in tryToUnrollLoop() argument
1046 L, SE, TTI, BFI, PSI, OptLevel, ProvidedThreshold, ProvidedCount, in tryToUnrollLoop()
1426 ProfileSummaryInfo *PSI = in run() local
1428 auto *BFI = (PSI && PSI->hasProfileSummary()) ? in run()
1460 if (PSI && PSI->hasHugeWorkingSetSize()) in run()
1466 &L, DT, &LI, SE, TTI, AC, ORE, BFI, PSI, in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DSampleProfile.cpp188 ProfileSummaryInfo *PSI) const;
190 ProfileSummaryInfo *PSI) const;
193 ProfileSummaryInfo *PSI) const;
359 ProfileSummaryInfo *PSI);
431 ProfileSummaryInfo *PSI = nullptr; member in __anon7a558ba40111::SampleProfileLoader
530 ProfileSummaryInfo *PSI) { in callsiteIsHot() argument
534 assert(PSI && "PSI is expected to be non null"); in callsiteIsHot()
537 return !PSI->isColdCount(CallsiteTotalSamples); in callsiteIsHot()
539 return PSI->isHotCount(CallsiteTotalSamples); in callsiteIsHot()
563 ProfileSummaryInfo *PSI) const { in countUsedRecords()
[all …]
DThinLTOBitcodeWriter.cpp207 ProfileSummaryInfo PSI(M); in splitAndWriteThinLTOBitcode() local
209 ModuleSummaryIndex Index = buildModuleSummaryIndex(M, nullptr, &PSI); in splitAndWriteThinLTOBitcode()
391 ProfileSummaryInfo PSI(M); in splitAndWriteThinLTOBitcode() local
392 ModuleSummaryIndex Index = buildModuleSummaryIndex(M, nullptr, &PSI); in splitAndWriteThinLTOBitcode()
398 buildModuleSummaryIndex(*MergedM, nullptr, &PSI); in splitAndWriteThinLTOBitcode()
469 ProfileSummaryInfo PSI(M); in writeThinLTOBitcode() local
471 buildModuleSummaryIndex(M, nullptr, &PSI)); in writeThinLTOBitcode()
DPartialInlining.cpp208 GetTTI(GTTI), GetBFI(GBFI), PSI(ProfSI) {} in PartialInlinerImpl()
277 ProfileSummaryInfo *PSI; member
367 ProfileSummaryInfo *PSI = in runOnModule() local
385 &GetTTI, NoneType::None, PSI) in runOnModule()
409 if (!PSI->hasInstrumentationProfile()) in computeOutliningColdRegionsInfo()
482 if (PSI->isColdBlock(thisBB, BFI) || in computeOutliningColdRegionsInfo()
781 CalleeTTI, *GetAssumptionCache, GetBFI, PSI, in shouldPartialInline()
1269 if (PSI->isFunctionEntryCold(F)) in unswitchFunction()
1279 if (PSI->hasProfileSummary() && F->hasProfileData() && in unswitchFunction()
1288 dbgs() << "HotCountThreshold = " << PSI->getHotCountThreshold() << "\n"; in unswitchFunction()
[all …]
DHotColdSplitting.cpp195 if (PSI->isFunctionEntryCold(&F)) in isFunctionCold()
575 bool Cold = (BFI && PSI->isColdBlock(BB, BFI)) || in outlineColdRegions()
680 ProfileSummaryInfo *PSI = in runOnModule() local
700 return HotColdSplitting(PSI, GBFI, GTTI, &GetORE, LookupAC).run(M); in runOnModule()
727 ProfileSummaryInfo *PSI = &AM.getResult<ProfileSummaryAnalysis>(M); in run() local
729 if (HotColdSplitting(PSI, GBFI, GTTI, &GetORE, LookupAC).run(M)) in run()
DInliner.cpp530 ProfileSummaryInfo *PSI, in inlineCallsImpl() argument
607 InlineFunctionInfo InlineInfo(&CG, &GetAssumptionCache, PSI); in inlineCallsImpl()
761 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in inlineCalls()
769 SCC, CG, GetAssumptionCache, PSI, GetTLI, InsertLifetime, in inlineCalls()
882 ProfileSummaryInfo *PSI = MAM.getCachedResult<ProfileSummaryAnalysis>(M); in run() local
1017 CalleeTTI, GetAssumptionCache, {GetBFI}, PSI, in run()
1068 /*cg=*/nullptr, &GetAssumptionCache, PSI, in run()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp127 ProfileSummaryInfo *PSI) { in getHotness() argument
128 if (!PSI) in getHotness()
130 if (PSI->isHotCount(ProfileCount)) in getHotness()
132 if (PSI->isColdCount(ProfileCount)) in getHotness()
244 ProfileSummaryInfo *PSI, DominatorTree &DT, in computeFunctionSummary() argument
344 auto ScaledCount = PSI->getProfileCount(&I, BFI); in computeFunctionSummary()
345 auto Hotness = ScaledCount ? getHotness(ScaledCount.getValue(), PSI) in computeFunctionSummary()
391 .updateHotness(getHotness(Candidate.Count, PSI)); in computeFunctionSummary()
643 ProfileSummaryInfo *PSI) { in buildModuleSummaryIndex() argument
644 assert(PSI); in buildModuleSummaryIndex()
[all …]
DProfileSummaryInfo.cpp363 PSI.reset(new ProfileSummaryInfo(M)); in doInitialization()
368 PSI.reset(); in doFinalization()
380 ProfileSummaryInfo &PSI = AM.getResult<ProfileSummaryAnalysis>(M); in run() local
385 if (PSI.isFunctionEntryHot(&F)) in run()
387 else if (PSI.isFunctionEntryCold(&F)) in run()
DInlineCost.cpp113 ProfileSummaryInfo *PSI; member in __anonc1fa0ae70111::CallAnalyzer
343 ProfileSummaryInfo *PSI, OptimizationRemarkEmitter *ORE, in CallAnalyzer() argument
346 PSI(PSI), F(Callee), DL(F.getParent()->getDataLayout()), ORE(ORE), in CallAnalyzer()
459 InlineCostCallAnalyzer CA(TTI, GetAssumptionCache, GetBFI, PSI, ORE, *F, in onLoweredCall()
631 ProfileSummaryInfo *PSI, OptimizationRemarkEmitter *ORE, Function &Callee, in InlineCostCallAnalyzer() argument
633 : CallAnalyzer(TTI, GetAssumptionCache, GetBFI, PSI, ORE, Callee, Call), in InlineCostCallAnalyzer()
1087 if (PSI && PSI->hasProfileSummary()) in isColdCallSite()
1088 return PSI->isColdCallSite(CallSite(&Call), CallerBFI); in isColdCallSite()
1112 if (PSI && PSI->hasProfileSummary() && in getHotCallSiteThreshold()
1113 PSI->isHotCallSite(CallSite(&Call), CallerBFI)) in getHotCallSiteThreshold()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86PadShortFunction.cpp117 auto *PSI = in runOnMachineFunction() local
119 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
137 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction()
DX86FixupBWInsts.cpp149 ProfileSummaryInfo *PSI; member in __anon5b99ff830111::FixupBWInstPass
166 PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(); in runOnMachineFunction()
167 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
441 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineSizeOpts.h27 bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI,
33 ProfileSummaryInfo *PSI,
DTailDuplicator.h46 ProfileSummaryInfo *PSI; variable
73 ProfileSummaryInfo *PSI,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DProfileSummaryInfo.h160 std::unique_ptr<ProfileSummaryInfo> PSI; variable
166 ProfileSummaryInfo &getPSI() { return *PSI; } in getPSI()
167 const ProfileSummaryInfo &getPSI() const { return *PSI; } in getPSI()
DInlineCost.h219 ProfileSummaryInfo *PSI, OptimizationRemarkEmitter *ORE = nullptr);
231 ProfileSummaryInfo *PSI, OptimizationRemarkEmitter *ORE);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DHotColdSplitting.h40 : PSI(ProfSI), GetBFI(GBFI), GetTTI(GTTI), GetORE(GORE), LookupAC(LAC) {} in HotColdSplitting()
53 ProfileSummaryInfo *PSI; variable

12345