| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineSizeOpts.cpp | 34 auto Count = MBFI->getBlockProfileCount(MBB); in isColdBlock() 83 const MachineBlockFrequencyInfo &MBFI) { in isFunctionColdInCallGraph() argument 88 if (!isColdBlock(&MBB, PSI, &MBFI)) in isFunctionColdInCallGraph() 99 const MachineBlockFrequencyInfo &MBFI) { in isFunctionHotInCallGraphNthPercentile() argument 112 const MachineBlockFrequencyInfo &MBFI) { in isFunctionColdInCallGraphNthPercentile() argument 136 CutOff, MF, PSI, MBFI); in isFunctionHotInCallGraphNthPercentile() 142 CutOff, MF, PSI, MBFI); in isFunctionColdInCallGraphNthPercentile() 159 CutOff, MBB, PSI, MBFI); in isHotBlockNthPercentile() 166 CutOff, BlockFreq, PSI, MBFI); in isHotBlockNthPercentile() 188 MF, PSI, MBFI, QueryType); in shouldOptimizeForSize() [all …]
|
| H A D | MachineBlockFrequencyInfo.cpp | 158 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes() 197 if (!MBFI) in calculate() 208 MBFI->print(dbgs()); in calculate() 231 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq() 236 if (!MBFI) in getBlockProfileCount() 245 if (!MBFI) in getProfileCountFromFreq() 270 return MBFI ? MBFI->getFunction() : nullptr; in getFunction() 274 return MBFI ? &MBFI->getBPI() : nullptr; in getMBPI() 280 return MBFI ? MBFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq() 286 return MBFI ? MBFI->printBlockFreq(OS, MBB) : OS; in printBlockFreq() [all …]
|
| H A D | MBFIWrapper.cpp | 26 return MBFI.getBlockFreq(MBB); in getBlockFreq() 41 return MBFI.getProfileCountFromFreq(I->second.getFrequency()); in getBlockProfileCount() 43 return MBFI.getBlockProfileCount(MBB); in getBlockProfileCount() 48 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq() 53 return MBFI.printBlockFreq(OS, Freq); in printBlockFreq() 57 MBFI.view(Name, isSimple); in view() 61 return MBFI.getEntryFreq(); in getEntryFreq()
|
| H A D | MachineOptimizationRemarkEmitter.cpp | 35 if (!MBFI) in computeHotness() 38 return MBFI->getBlockProfileCount(&MBB); in computeHotness() 70 MachineBlockFrequencyInfo *MBFI; in runOnMachineFunction() local 73 MBFI = &getAnalysis<LazyMachineBlockFrequencyInfoPass>().getBFI(); in runOnMachineFunction() 75 MBFI = nullptr; in runOnMachineFunction() 77 ORE = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in runOnMachineFunction()
|
| H A D | MachineFunctionSplitter.cpp | 80 const MachineBlockFrequencyInfo *MBFI, in isColdBlock() argument 82 Optional<uint64_t> Count = MBFI->getBlockProfileCount(&MBB); in isColdBlock() 120 auto *MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction() local 130 else if (isColdBlock(MBB, MBFI, PSI)) in runOnMachineFunction() 137 if (!isColdBlock(*LP, MBFI, PSI)) in runOnMachineFunction()
|
| H A D | TailDuplication.cpp | 89 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 D | MIRSampleProfile.cpp | 124 MachineLoopInfo *MLI, MachineBlockFrequencyInfo *MBFI, in setInitVals() argument 129 BFI = MBFI; in setInitVals() 311 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction() 315 MBFI, &getAnalysis<MachineOptimizationRemarkEmitterPass>().getORE()); in runOnMachineFunction() 321 MBFI->view("MIR_Prof_loader_b." + MF.getName(), false); in runOnMachineFunction() 326 MBFI->calculate(MF, *MBFI->getMBPI(), *&getAnalysis<MachineLoopInfo>()); in runOnMachineFunction() 331 MBFI->view("MIR_prof_loader_a." + MF.getName(), false); in runOnMachineFunction()
|
| H A D | MachineBlockPlacement.cpp | 370 std::unique_ptr<MBFIWrapper> MBFI; member in __anon7097cf1d0111::MachineBlockPlacement 434 auto Count = MBFI->getBlockProfileCount(BB); in getBlockCountOrFrequency() 440 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency() 831 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup() 832 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup() 835 uint64_t EntryFreq = MBFI->getEntryFreq(); in isProfitableToTailDup() 861 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup() 3208 return MBFI->getBlockFreq(A) > MBFI->getBlockFreq(B); in findDuplicateCandidates() 3340 MBFI = std::make_unique<MBFIWrapper>( in runOnMachineFunction() 3469 MBFI->view("MBP." + MF.getName(), false); in runOnMachineFunction() [all …]
|
| H A D | LazyMachineBlockFrequencyInfo.cpp | 59 auto *MBFI = getAnalysisIfAvailable<MachineBlockFrequencyInfo>(); in calculateIfNotAvailable() local 60 if (MBFI) { in calculateIfNotAvailable() 62 return *MBFI; in calculateIfNotAvailable()
|
| H A D | ShrinkWrap.cpp | 128 MachineBlockFrequencyInfo *MBFI; member in __anone21e770d0111::ShrinkWrap 194 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init() 197 EntryFreq = MBFI->getEntryFreq(); in init() 547 << MBFI->getBlockFreq(Save).getFrequency() in runOnMachineFunction() 550 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction() 553 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction() 554 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
|
| H A D | SpillPlacement.cpp | 205 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction() 206 setThreshold(MBFI->getEntryFreq()); in runOnMachineFunction() 209 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction() 241 nodes[n].BiasN = (MBFI->getEntryFreq() / 16); in activate()
|
| H A D | MLRegallocEvictAdvisor.cpp | 250 MLModelRunner *Runner, const MachineBlockFrequencyInfo &MBFI, 310 const MachineBlockFrequencyInfo &MBFI; member in __anon8d2f77590111::MLEvictAdvisor 389 const MachineBlockFrequencyInfo &MBFI, in DevelopmentModeEvictAdvisor() argument 391 : MLEvictAdvisor(MF, RA, Runner, MBFI, Loops), Log(Log) {} in DevelopmentModeEvictAdvisor() 505 const MachineBlockFrequencyInfo &MBFI, in MLEvictAdvisor() argument 508 Runner(std::move(Runner)), MBFI(MBFI), Loops(Loops), in MLEvictAdvisor() 723 float Freq = MBFI.getBlockFreqRelativeToEntryBlock(MI->getParent()); in getLIFeatureComponents() 801 MBFI.getBlockFreqRelativeToEntryBlock(LIS->getMBBFromIndex(StartSI)); in extractFeatures() 805 MBFI.getBlockFreqRelativeToEntryBlock(LIS->getMBBFromIndex(EndSI)); in extractFeatures()
|
| H A D | RegAllocScore.cpp | 77 const MachineBlockFrequencyInfo &MBFI) { in calculateRegAllocScore() argument 81 return MBFI.getBlockFreqRelativeToEntryBlock(&MBB); in calculateRegAllocScore()
|
| H A D | RegAllocPBQP.cpp | 439 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 D | CalcSpillWeights.cpp | 191 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, LocalMBB); in weightCalcHelper() 192 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, LocalMBB); in weightCalcHelper() 251 Weight = LiveIntervals::getSpillWeight(Writes, Reads, &MBFI, *MI); in weightCalcHelper()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | CalcSpillWeights.h | 50 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 D | MachineOptimizationRemarkEmitter.h | 154 MachineBlockFrequencyInfo *MBFI) in MachineOptimizationRemarkEmitter() argument 155 : MF(MF), MBFI(MBFI) {} in MachineOptimizationRemarkEmitter() 193 return MBFI; in getBFI() 200 MachineBlockFrequencyInfo *MBFI; variable 211 bool shouldEmitVerbose() { return MBFI != nullptr; } in shouldEmitVerbose()
|
| H A D | MBFIWrapper.h | 28 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper() 40 const MachineBlockFrequencyInfo &getMBFI() { return MBFI; } in getMBFI() 43 const MachineBlockFrequencyInfo &MBFI;
|
| H A D | TailDuplicator.h | 46 MBFIWrapper *MBFI; variable 73 MBFIWrapper *MBFI,
|
| H A D | MachineSizeOpts.h | 35 const MachineBlockFrequencyInfo *MBFI,
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | RegBankSelect.cpp | 88 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init() 91 MBFI = nullptr; in init() 451 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping() 903 const MachineBlockFrequencyInfo *MBFI = in frequency() local 905 if (!MBFI) in frequency() 911 const MachineBlockFrequencyInfo *MBFI = in frequency() local 913 if (!MBFI) in frequency() 915 return MBFI->getBlockFreq(&MBB).getFrequency(); in frequency() 932 const MachineBlockFrequencyInfo *MBFI = in frequency() local 934 if (!MBFI) in frequency() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegColoring.cpp | 66 const MachineBlockFrequencyInfo *MBFI, in computeWeight() argument 70 Weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight() 90 const MachineBlockFrequencyInfo *MBFI = in runOnMachineFunction() local 110 LI->setWeight(computeWeight(MRI, MBFI, VReg)); in runOnMachineFunction()
|
| /llvm-project-15.0.7/llvm/unittests/Target/X86/ |
| H A D | MachineSizeOptsTest.cpp | 51 std::unique_ptr<MachineBlockFrequencyInfo> MBFI; member 56 MBFI.reset(new MachineBlockFrequencyInfo(MF, *MBPI, *MLI)); in BFIData() 58 MachineBlockFrequencyInfo *get() { return MBFI.get(); } in get()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86PadShortFunction.cpp | 119 auto *MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() local 136 bool OptForSize = llvm::shouldOptimizeForSize(MBB, PSI, MBFI); in runOnMachineFunction()
|
| H A D | X86FixupBWInsts.cpp | 152 MachineBlockFrequencyInfo *MBFI; member in __anon7f6449270111::FixupBWInstPass 170 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() 458 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
|