Home
last modified time | relevance | path

Searched refs:MBFI (Results 1 – 25 of 48) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineBlockFrequencyInfo.cpp158 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
197 if (!MBFI) in calculate()
198 MBFI.reset(new ImplType); in calculate()
207 MBFI->print(dbgs()); in calculate()
230 return MBFI ? MBFI->getBlockFreq(MBB) : BlockFrequency(0); in getBlockFreq()
235 if (!MBFI) in getBlockProfileCount()
244 if (!MBFI) in getProfileCountFromFreq()
269 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
273 return MBFI ? &MBFI->getBPI() : nullptr; in getMBPI()
277 return MBFI ? MBFI->getEntryFreq() : BlockFrequency(0); in getEntryFreq()
[all …]
H A DMBFIWrapper.cpp26 return MBFI.getBlockFreq(MBB); in getBlockFreq()
41 return MBFI.getProfileCountFromFreq(I->second); in getBlockProfileCount()
43 return MBFI.getBlockProfileCount(MBB); in getBlockProfileCount()
47 MBFI.view(Name, isSimple); in view()
50 BlockFrequency MBFIWrapper::getEntryFreq() const { return MBFI.getEntryFreq(); } in getEntryFreq()
H A DMachineOptimizationRemarkEmitter.cpp36 if (!MBFI) in computeHotness()
39 return MBFI->getBlockProfileCount(&MBB); in computeHotness()
71 MachineBlockFrequencyInfo *MBFI; in runOnMachineFunction() local
74 MBFI = &getAnalysis<LazyMachineBlockFrequencyInfoPass>().getBFI(); in runOnMachineFunction()
76 MBFI = nullptr; in runOnMachineFunction()
78 ORE = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in runOnMachineFunction()
H A DMachineFunctionSplitter.cpp109 const MachineBlockFrequencyInfo *MBFI, in isColdBlock() argument
111 std::optional<uint64_t> Count = MBFI->getBlockProfileCount(&MBB); in isColdBlock()
156 MachineBlockFrequencyInfo *MBFI = nullptr; in runOnMachineFunction() local
159 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); 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 DMachineSizeOpts.cpp29 const MachineBlockFrequencyInfo *MBFI, in shouldOptimizeForSize() argument
31 return shouldFuncOptimizeForSizeImpl(MF, PSI, MBFI, QueryType); in shouldOptimizeForSize()
36 const MachineBlockFrequencyInfo *MBFI, in shouldOptimizeForSize() argument
39 return shouldOptimizeForSizeImpl(MBB, PSI, MBFI, QueryType); in shouldOptimizeForSize()
H A DTailDuplication.cpp89 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() local
92 if (MBFI) in runOnMachineFunction()
93 MBFIW = std::make_unique<MBFIWrapper>(*MBFI); in runOnMachineFunction()
94 Duplicator.initMF(MF, PreRegAlloc, MBPI, MBFI ? MBFIW.get() : nullptr, PSI, in runOnMachineFunction()
H A DMachineBlockPlacement.cpp381 std::unique_ptr<MBFIWrapper> MBFI; member in __anon4a3aec630111::MachineBlockPlacement
445 auto Count = MBFI->getBlockProfileCount(BB); in getBlockCountOrFrequency()
451 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency()
842 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
843 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
872 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
2451 auto EdgeFreq = MBFI->getBlockFreq(Pred) * in rotateLoopWithProfile()
3242 return MBFI->getBlockFreq(A) > MBFI->getBlockFreq(B); in findDuplicateCandidates()
3375 MBFI = std::make_unique<MBFIWrapper>( in runOnMachineFunction()
3506 MBFI->view("MBP." + MF.getName(), false); in runOnMachineFunction()
[all …]
H A DMIRSampleProfile.cpp148 MachineLoopInfo *MLI, MachineBlockFrequencyInfo *MBFI, in setInitVals() argument
153 BFI = MBFI; in setInitVals()
366 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
370 MBFI, &getAnalysis<MachineOptimizationRemarkEmitterPass>().getORE()); in runOnMachineFunction()
376 MBFI->view("MIR_Prof_loader_b." + MF.getName(), false); in runOnMachineFunction()
381 MBFI->calculate(MF, *MBFI->getMBPI(), *&getAnalysis<MachineLoopInfo>()); in runOnMachineFunction()
386 MBFI->view("MIR_prof_loader_a." + MF.getName(), false); in runOnMachineFunction()
H A DLazyMachineBlockFrequencyInfo.cpp59 auto *MBFI = getAnalysisIfAvailable<MachineBlockFrequencyInfo>(); in calculateIfNotAvailable() local
60 if (MBFI) { in calculateIfNotAvailable()
62 return *MBFI; in calculateIfNotAvailable()
H A DShrinkWrap.cpp132 MachineBlockFrequencyInfo *MBFI = nullptr; member in __anon7eef84130111::ShrinkWrap
230 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
233 EntryFreq = MBFI->getEntryFreq(); in init()
643 EntryFreq < MBFI->getBlockFreq(NewSave) || in postShrinkWrapping()
678 assert((EntryFreq >= MBFI->getBlockFreq(Save) && in postShrinkWrapping()
679 EntryFreq >= MBFI->getBlockFreq(Restore)) && in postShrinkWrapping()
889 << printBlockFreq(*MBFI, *Save) in performShrinkWrapping()
891 << printBlockFreq(*MBFI, *Restore) << '\n'); in performShrinkWrapping()
894 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save)) && in performShrinkWrapping()
895 EntryFreq >= MBFI->getBlockFreq(Restore)) && in performShrinkWrapping()
H A DSpillPlacement.cpp203 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
204 setThreshold(MBFI->getEntryFreq()); in runOnMachineFunction()
207 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
239 BlockFrequency BiasN = MBFI->getEntryFreq(); in activate()
H A DMLRegAllocEvictAdvisor.cpp289 MLModelRunner *Runner, const MachineBlockFrequencyInfo &MBFI,
350 const MachineBlockFrequencyInfo &MBFI; member in __anon7996ed3f0111::MLEvictAdvisor
433 const MachineBlockFrequencyInfo &MBFI, in DevelopmentModeEvictAdvisor() argument
435 : MLEvictAdvisor(MF, RA, Runner, MBFI, Loops), Log(Log) {} in DevelopmentModeEvictAdvisor()
571 const MachineBlockFrequencyInfo &MBFI, in MLEvictAdvisor() argument
574 Runner(std::move(Runner)), MBFI(MBFI), Loops(Loops), in MLEvictAdvisor()
749 return MBFI.getBlockFreqRelativeToEntryBlock( in tryFindEvictionCandidate()
819 float Freq = MBFI.getBlockFreqRelativeToEntryBlock(MI->getParent()); in getLIFeatureComponents()
905 MBFI.getBlockFreqRelativeToEntryBlock(LIS->getMBBFromIndex(StartSI)); in extractFeatures()
909 MBFI.getBlockFreqRelativeToEntryBlock(LIS->getMBBFromIndex(EndSI)); in extractFeatures()
H A DRegAllocScore.cpp74 const MachineBlockFrequencyInfo &MBFI) { in calculateRegAllocScore() argument
78 return MBFI.getBlockFreqRelativeToEntryBlock(&MBB); in calculateRegAllocScore()
H A DRegAllocPBQP.cpp439 MachineBlockFrequencyInfo &MBFI = G.getMetadata().MBFI; in apply() local
453 PBQP::PBQPNum CBenefit = MBFI.getBlockFreqRelativeToEntryBlock(&MBB); in apply()
531 const MachineBlockFrequencyInfo &MBFI) in PBQPVirtRegAuxInfo() argument
532 : VirtRegAuxInfo(MF, LIS, VRM, Loops, MBFI) {} in PBQPVirtRegAuxInfo()
795 MachineBlockFrequencyInfo &MBFI = in runOnMachineFunction() local
800 PBQPVirtRegAuxInfo VRAI(MF, LIS, VRM, getAnalysis<MachineLoopInfo>(), MBFI); in runOnMachineFunction()
808 MBFI); in runOnMachineFunction()
852 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
H A DCalcSpillWeights.cpp202 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, LocalMBB); in weightCalcHelper()
203 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, LocalMBB); in weightCalcHelper()
274 Weight = LiveIntervals::getSpillWeight(Writes, Reads, &MBFI, *MI); in weightCalcHelper()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DCalcSpillWeights.h50 const MachineBlockFrequencyInfo &MBFI; variable
59 const MachineBlockFrequencyInfo &MBFI) in VirtRegAuxInfo() argument
60 : MF(MF), LIS(LIS), VRM(VRM), Loops(Loops), MBFI(MBFI) {} in VirtRegAuxInfo()
H A DMachineOptimizationRemarkEmitter.h155 MachineBlockFrequencyInfo *MBFI) in MachineOptimizationRemarkEmitter() argument
156 : MF(MF), MBFI(MBFI) {} in MachineOptimizationRemarkEmitter()
194 return MBFI; in getBFI()
201 MachineBlockFrequencyInfo *MBFI; variable
212 bool shouldEmitVerbose() { return MBFI != nullptr; } in shouldEmitVerbose()
H A DMBFIWrapper.h28 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper()
37 const MachineBlockFrequencyInfo &getMBFI() const { return MBFI; } in getMBFI()
40 const MachineBlockFrequencyInfo &MBFI;
H A DMachineBlockFrequencyInfo.h35 std::unique_ptr<ImplType> MBFI; variable
102 Printable printBlockFreq(const MachineBlockFrequencyInfo &MBFI,
107 Printable printBlockFreq(const MachineBlockFrequencyInfo &MBFI,
H A DTailDuplicator.h46 MBFIWrapper *MBFI; variable
73 MBFIWrapper *MBFI,
H A DMachineSizeOpts.h35 const MachineBlockFrequencyInfo *MBFI,
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp88 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
91 MBFI = nullptr; in init()
452 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) in computeMapping()
921 const MachineBlockFrequencyInfo *MBFI = in frequency() local
923 if (!MBFI) in frequency()
929 const MachineBlockFrequencyInfo *MBFI = in frequency() local
931 if (!MBFI) in frequency()
933 return MBFI->getBlockFreq(&MBB).getFrequency(); in frequency()
950 const MachineBlockFrequencyInfo *MBFI = in frequency() local
952 if (!MBFI) in frequency()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegColoring.cpp66 const MachineBlockFrequencyInfo *MBFI, in computeWeight() argument
70 Weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight()
236 const MachineBlockFrequencyInfo *MBFI = in runOnMachineFunction() local
262 LI->setWeight(computeWeight(MRI, MBFI, VReg)); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp119 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() local
136 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction()
H A DX86FixupBWInsts.cpp151 MachineBlockFrequencyInfo *MBFI = nullptr; member in __anon69dcfc2d0111::FixupBWInstPass
169 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction()
456 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()

12