/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | MachineBlockFrequencyInfo.cpp | 156 const MachineBlockFrequencyInfo *MBFI) { in getEdgeAttributes() 158 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes() 177 auto &MBFI = MFAM.getResult<MachineBlockFrequencyAnalysis>(MF); in run() local 180 MBFI.print(OS); in run() 234 if (!MBFI) in calculate() 235 MBFI.reset(new ImplType); in calculate() 236 MBFI->calculate(F, MBPI, MLI); in calculate() 243 MBFI->print(dbgs()); in calculate() 252 MBFI.calculate(F, MBPI, MLI); in runOnMachineFunction() 256 void MachineBlockFrequencyInfo::print(raw_ostream &OS) { MBFI->print(OS); } in print() [all …]
|
H A D | MachineOptimizationRemarkEmitter.cpp | 39 return MBFI && Inv.invalidate<MachineBlockFrequencyAnalysis>(MF, PA); in invalidate() 44 if (!MBFI) in computeHotness() 47 return MBFI->getBlockProfileCount(&MBB); in computeHotness() 79 MachineBlockFrequencyInfo *MBFI; in runOnMachineFunction() local 82 MBFI = &getAnalysis<LazyMachineBlockFrequencyInfoPass>().getBFI(); in runOnMachineFunction() 84 MBFI = nullptr; in runOnMachineFunction() 86 ORE = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in runOnMachineFunction() 102 MachineBlockFrequencyInfo *MBFI = in run() local 106 return Result(MF, MBFI); in run()
|
H A D | MBFIWrapper.cpp | 26 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 printBlockFreq() 50 BlockFrequency MBFIWrapper::getEntryFreq() const { return MBFI.getEntryFreq(); }
|
H A D | MachineFunctionSplitter.cpp | 109 const MachineBlockFrequencyInfo *MBFI, in isColdBlock() argument 111 std::optional<uint64_t> Count = MBFI->getBlockProfileCount(&MBB); in isColdBlock() 150 MachineBlockFrequencyInfo *MBFI = nullptr; in runOnMachineFunction() local 153 MBFI = &getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(); in runOnMachineFunction() 159 if (PSI->hasSampleProfile() && !PSI->isFunctionHotInCallGraph(&MF, *MBFI)) { in runOnMachineFunction() 175 else if (UseProfileData && isColdBlock(MBB, MBFI, PSI) && in runOnMachineFunction() 188 if (!isColdBlock(*LP, MBFI, PSI) || !TII.isMBBSafeToSplitToCold(*LP)) in runOnMachineFunction()
|
H A D | MachineSizeOpts.cpp | 29 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 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 | MachineBlockPlacement.cpp | 381 std::unique_ptr<MBFIWrapper> MBFI; member in __anon1d8a29ed0111::MachineBlockPlacement 445 auto Count = MBFI->getBlockProfileCount(BB); in getBlockCountOrFrequency() 451 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency() 847 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup() 848 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup() 851 BlockFrequency EntryFreq = MBFI->getEntryFreq(); in isProfitableToTailDup() 877 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup() 1090 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor() 1542 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor() 1569 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor() [all …]
|
H A D | MIRSampleProfile.cpp | 148 MachineLoopInfo *MLI, MachineBlockFrequencyInfo *MBFI, in setInitVals() argument 153 BFI = MBFI; in setInitVals() 366 MBFI = &getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(); in runOnMachineFunction() 370 &getAnalysis<MachineLoopInfoWrapperPass>().getLI(), MBFI, in runOnMachineFunction() 377 MBFI->view("MIR_Prof_loader_b." + MF.getName(), false); in runOnMachineFunction() 382 MBFI->calculate(MF, *MBFI->getMBPI(), in runOnMachineFunction() 388 MBFI->view("MIR_prof_loader_a." + MF.getName(), false); in runOnMachineFunction()
|
H A D | ShrinkWrap.cpp | 132 MachineBlockFrequencyInfo *MBFI = nullptr; member in __anon8a4a73dd0111::ShrinkWrap 232 MBFI = &getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(); in init() 235 EntryFreq = MBFI->getEntryFreq(); in init() 645 EntryFreq < MBFI->getBlockFreq(NewSave) || in postShrinkWrapping() 680 assert((EntryFreq >= MBFI->getBlockFreq(Save) && in postShrinkWrapping() 681 EntryFreq >= MBFI->getBlockFreq(Restore)) && in postShrinkWrapping() 891 << printBlockFreq(*MBFI, *Save) in performShrinkWrapping() 893 << printBlockFreq(*MBFI, *Restore) << '\n'); in performShrinkWrapping() 896 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save)) && in performShrinkWrapping() 897 EntryFreq >= MBFI->getBlockFreq(Restore)) && in performShrinkWrapping()
|
H A D | SpillPlacement.cpp | 203 MBFI = &getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(); 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 D | MLRegallocEvictAdvisor.cpp |
|
H A D | MLRegAllocEvictAdvisor.cpp | 290 MLModelRunner *Runner, const MachineBlockFrequencyInfo &MBFI, 351 const MachineBlockFrequencyInfo &MBFI; member in __anonb6cddc090111::MLEvictAdvisor 435 const MachineBlockFrequencyInfo &MBFI, in DevelopmentModeEvictAdvisor() argument 437 : MLEvictAdvisor(MF, RA, Runner, MBFI, Loops), Log(Log) {} in DevelopmentModeEvictAdvisor() 574 const MachineBlockFrequencyInfo &MBFI, in MLEvictAdvisor() argument 577 Runner(std::move(Runner)), MBFI(MBFI), Loops(Loops), in MLEvictAdvisor() 752 return MBFI.getBlockFreqRelativeToEntryBlock( in tryFindEvictionCandidate() 822 float Freq = MBFI.getBlockFreqRelativeToEntryBlock(MI->getParent()); in getLIFeatureComponents() 908 MBFI.getBlockFreqRelativeToEntryBlock(LIS->getMBBFromIndex(StartSI)); in extractFeatures() 912 MBFI.getBlockFreqRelativeToEntryBlock(LIS->getMBBFromIndex(EndSI)); in extractFeatures()
|
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 801 MF, LIS, VRM, getAnalysis<MachineLoopInfoWrapperPass>().getLI(), MBFI); in runOnMachineFunction() 809 MF, LIS, VRM, getAnalysis<MachineLoopInfoWrapperPass>().getLI(), MBFI); in runOnMachineFunction() 853 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
|
H A D | RegAllocScore.cpp | 74 const MachineBlockFrequencyInfo &MBFI) { in calculateRegAllocScore() 78 return MBFI.getBlockFreqRelativeToEntryBlock(&MBB); in calculateRegAllocScore() 75 calculateRegAllocScore(const MachineFunction & MF,const MachineBlockFrequencyInfo & MBFI) calculateRegAllocScore() argument
|
H A D | CalcSpillWeights.cpp | 202 TotalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, LocalMBB); in weightCalcHelper() 203 TotalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, LocalMBB); in weightCalcHelper() 275 Weight = LiveIntervals::getSpillWeight(Writes, Reads, &MBFI, *MI); in weightCalcHelper()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineBlockFrequencyInfo.h | 36 std::unique_ptr<ImplType> MBFI; variable 104 Printable printBlockFreq(const MachineBlockFrequencyInfo &MBFI, 109 Printable printBlockFreq(const MachineBlockFrequencyInfo &MBFI, 138 MachineBlockFrequencyInfo MBFI; variable 149 void releaseMemory() override { MBFI.releaseMemory(); } in releaseMemory() 151 MachineBlockFrequencyInfo &getMBFI() { return MBFI; } in getMBFI() 153 const MachineBlockFrequencyInfo &getMBFI() const { return MBFI; } in getMBFI()
|
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 | 156 MachineBlockFrequencyInfo *MBFI) in MachineOptimizationRemarkEmitter() argument 157 : MF(MF), MBFI(MBFI) {} in MachineOptimizationRemarkEmitter() 202 return MBFI; in getBFI() 209 MachineBlockFrequencyInfo *MBFI; variable 220 bool shouldEmitVerbose() { return MBFI != nullptr; } in shouldEmitVerbose()
|
H A D | MBFIWrapper.h | 28 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} 37 const MachineBlockFrequencyInfo &getMBFI() const { return MBFI; } 40 const MachineBlockFrequencyInfo &MBFI;
|
H A D | TailDuplicator.h | 45 MBFIWrapper *MBFI; variable 72 MBFIWrapper *MBFI,
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | RegBankSelect.cpp | 88 MBFI = &getAnalysis<MachineBlockFrequencyInfoWrapperPass>().getMBFI(); in init() 91 MBFI = nullptr; in init() 95 MORE = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in init() 447 assert((MBFI || !BestCost) && "Costs comparison require MBFI"); in computeMapping() 453 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) in computeMapping() 522 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping() 955 const auto *MBFI = &MBFIWrapper->getMBFI(); in frequency() local 957 return MBFI->getBlockFreq(DstOrSplit).getFrequency(); in frequency() 966 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
|
/freebsd/contrib/llvm-project/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() 235 const MachineBlockFrequencyInfo *MBFI = in runOnMachineFunction() local 261 LI->setWeight(computeWeight(MRI, MBFI, VReg)); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/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 | 145 MachineBlockFrequencyInfo *MBFI = nullptr; member in __anon46e815f70111::FixupBWInstPass 162 MBFI = (PSI && PSI->hasProfileSummary()) ? in runOnMachineFunction() 447 llvm::shouldOptimizeForSize(&MBB, PSI, MBFI); in processBasicBlock()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonLoopAlign.cpp | 152 const MachineBlockFrequencyInfo *MBFI = in attemptToBalignSmallLoop() local 156 BlockFrequency BlockFreq = MBFI->getBlockFreq(&MBB); in attemptToBalignSmallLoop()
|