Home
last modified time | relevance | path

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

/external/llvm/lib/CodeGen/
DMachineBlockFrequencyInfo.cpp144 if (!MBFI) in runOnMachineFunction()
145 MBFI.reset(new ImplType); in runOnMachineFunction()
146 MBFI->calculate(F, MBPI, MLI); in runOnMachineFunction()
155 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory()
172 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
176 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
182 return MBFI ? MBFI->printBlockFreq(OS, Freq) : OS; in printBlockFreq()
188 return MBFI ? MBFI->printBlockFreq(OS, MBB) : OS; in printBlockFreq()
192 return MBFI ? MBFI->getEntryFreq() : 0; in getEntryFreq()
DMachineBlockPlacement.cpp216 const MachineBlockFrequencyInfo *MBFI; member in __anon64d447340311::MachineBlockPlacement
472 MBFI->getBlockFreq(BB) * RealSuccProb * HotProb.getCompl(); in selectBestSuccessor()
479 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in selectBestSuccessor()
537 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
539 MBFI->printBlockFreq(dbgs(), CandidateFreq) << " (freq)\n"); in selectBestCandidateBlock()
657 MBFI->printBlockFreq(dbgs(), Pred) << " freq\n"); in findBestLoopTop()
661 BlockFrequency PredFreq = MBFI->getBlockFreq(Pred); in findBestLoopTop()
756 BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb; in findBestLoopExit()
759 MBFI->printBlockFreq(dbgs(), ExitEdgeFreq) << ")\n"); in findBestLoopExit()
882 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, HeaderBB); in rotateLoopWithProfile()
[all …]
DShrinkWrap.cpp113 MachineBlockFrequencyInfo *MBFI; member in __anoncf2487840111::ShrinkWrap
165 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
167 EntryFreq = MBFI->getEntryFreq(); in init()
443 << MBFI->getBlockFreq(Save).getFrequency() << "\nRestore: " in runOnMachineFunction()
445 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction()
448 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction()
449 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
DBranchFolding.h30 const MachineBlockFrequencyInfo &MBFI,
105 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper()
110 const MachineBlockFrequencyInfo &MBFI;
DSpillPlacement.cpp188 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
189 setThreshold(MBFI->getEntryFreq()); in runOnMachineFunction()
192 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
222 nodes[n].BiasN = (MBFI->getEntryFreq() / 16); in activate()
DMachineSink.cpp63 const MachineBlockFrequencyInfo *MBFI; member in __anon05421aa50111::MachineSinking
270 MBFI = UseBlockFreqInfo ? &getAnalysis<MachineBlockFrequencyInfo>() : nullptr; in runOnMachineFunction()
572 uint64_t LHSFreq = MBFI ? MBFI->getBlockFreq(L).getFrequency() : 0; in GetAllSortedSuccessors()
573 uint64_t RHSFreq = MBFI ? MBFI->getBlockFreq(R).getFrequency() : 0; in GetAllSortedSuccessors()
DCalcSpillWeights.cpp30 const MachineBlockFrequencyInfo &MBFI, in calculateSpillWeightsAndHints() argument
36 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints()
174 writes, reads, &MBFI, mi); in calculateSpillWeightAndHint()
DRegAllocPBQP.cpp407 MachineBlockFrequencyInfo &MBFI = G.getMetadata().MBFI; in apply() local
422 const float Scale = 1.0f / MBFI.getEntryFreq(); in apply()
423 PBQP::PBQPNum CBenefit = MBFI.getBlockFreq(&MBB).getFrequency() * Scale; in apply()
725 MachineBlockFrequencyInfo &MBFI = in runOnMachineFunction() local
731 MBFI, normalizePBQPSpillWeight); in runOnMachineFunction()
775 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
DSpillPlacement.h48 const MachineBlockFrequencyInfo *MBFI; variable
DStackSlotColoring.cpp52 const MachineBlockFrequencyInfo *MBFI; member in __anonc50eedf00111::StackSlotColoring
160 li.weight += LiveIntervals::getSpillWeight(false, true, MBFI, MI); in ScanForSpillSlotRefs()
435 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
DRegAllocGreedy.cpp125 MachineBlockFrequencyInfo *MBFI; member in __anon054f10040111::RAGreedy
1361 MBFI->printBlockFreq(dbgs(), BestCost) << '\n'); in tryRegionSplit()
1416 MBFI->printBlockFreq(dbgs(), Cost)); in calculateRegionSplitCost()
1439 dbgs() << ", total = "; MBFI->printBlockFreq(dbgs(), Cost) in calculateRegionSplitCost()
1796 (1.0f / MBFI->getEntryFreq()); in tryLocalSplit()
2288 uint64_t ActualEntry = MBFI->getEntryFreq(); in initializeCSRCost()
2323 Out.push_back(HintInfo(MBFI->getBlockFreq(Instr.getParent()), OtherReg, in collectHintInfo()
2579 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
2589 calculateSpillWeightsAndHints(*LIS, mf, VRM, *Loops, *MBFI); in runOnMachineFunction()
2594 SE.reset(new SplitEditor(*SA, *LIS, *VRM, *DomTree, *MBFI)); in runOnMachineFunction()
DLiveRangeEdit.cpp406 const MachineBlockFrequencyInfo &MBFI) { in calculateRegClassAndHint() argument
407 VirtRegAuxInfo VRAI(MF, LIS, VRM, Loops, MBFI); in calculateRegClassAndHint()
DInlineSpiller.cpp70 const MachineBlockFrequencyInfo &MBFI; member in __anon88e9ceb50111::InlineSpiller
150 MBFI(pass.getAnalysis<MachineBlockFrequencyInfo>()) {} in InlineSpiller()
452 (MBFI.getBlockFreq(DepSV.SpillMBB) >= in propagateSiblingValue()
453 (MBFI.getBlockFreq(SV.SpillMBB) * MarginProb)) || in propagateSiblingValue()
1397 Edit->calculateRegClassAndHint(MF, Loops, MBFI); in spill()
DSplitKit.h219 const MachineBlockFrequencyInfo &MBFI; variable
DIfConversion.cpp164 const MachineBlockFrequencyInfo *MBFI; member in __anon72ccd3d00111::IfConverter
283 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in INITIALIZE_PASS_DEPENDENCY()
295 BranchFolder BF(true, false, *MBFI, *MBPI); in INITIALIZE_PASS_DEPENDENCY()
428 BranchFolder BF(false, false, *MBFI, *MBPI); in INITIALIZE_PASS_DEPENDENCY()
DLiveIntervalAnalysis.cpp842 const MachineBlockFrequencyInfo *MBFI, in getSpillWeight() argument
844 BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); in getSpillWeight()
845 const float Scale = 1.0f / MBFI->getEntryFreq(); in getSpillWeight()
DSplitKit.cpp327 MBFI(mbfi), Edit(nullptr), OpenIdx(0), SpillMode(SM_Partition), in SplitEditor()
1101 Edit->calculateRegClassAndHint(VRM.getMachineFunction(), SA.Loops, MBFI); in finish()
DBranchFolding.cpp532 return MBFI.getBlockFreq(MBB); in getBlockFreq()
/external/llvm/include/llvm/CodeGen/
DCalcSpillWeights.h57 const MachineBlockFrequencyInfo &MBFI; variable
66 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF()
77 const MachineBlockFrequencyInfo &MBFI,
DMachineBlockFrequencyInfo.h31 std::unique_ptr<ImplType> MBFI; variable
DRegAllocPBQP.h147 MachineBlockFrequencyInfo &MBFI) in GraphMetadata() argument
148 : MF(MF), LIS(LIS), MBFI(MBFI) {} in GraphMetadata()
152 MachineBlockFrequencyInfo &MBFI; variable
DLiveIntervalAnalysis.h107 const MachineBlockFrequencyInfo *MBFI,
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyRegColoring.cpp64 const MachineBlockFrequencyInfo *MBFI, in computeWeight() argument
68 weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight()
88 const MachineBlockFrequencyInfo *MBFI = in runOnMachineFunction() local
108 LI->weight = computeWeight(MRI, MBFI, VReg); in runOnMachineFunction()