Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineBlockFrequencyInfo.cpp154 const MachineBlockFrequencyInfo *MBFI) { in getEdgeAttributes()
156 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
188 if (!MBFI) in calculate()
189 MBFI.reset(new ImplType); in calculate()
190 MBFI->calculate(F, MBPI, MLI); in calculate()
199 MBFI->print(dbgs()); in calculate()
211 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory()
222 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
227 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
228 return MBFI ? MBFI->getBlockProfileCount(F, MBB) : None; in getBlockProfileCount()
[all …]
DMachineOptimizationRemarkEmitter.cpp36 if (!MBFI) in computeHotness()
39 return MBFI->getBlockProfileCount(&MBB); in computeHotness()
73 MachineBlockFrequencyInfo *MBFI; in runOnMachineFunction() local
76 MBFI = &getAnalysis<LazyMachineBlockFrequencyInfoPass>().getBFI(); in runOnMachineFunction()
78 MBFI = nullptr; in runOnMachineFunction()
80 ORE = llvm::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in runOnMachineFunction()
DLazyMachineBlockFrequencyInfo.cpp58 auto *MBFI = getAnalysisIfAvailable<MachineBlockFrequencyInfo>(); in calculateIfNotAvailable() local
59 if (MBFI) { in calculateIfNotAvailable()
61 return *MBFI; in calculateIfNotAvailable()
DMachineBlockPlacement.cpp346 std::unique_ptr<BranchFolder::MBFIWrapper> MBFI; member in __anon51eaf9470111::MachineBlockPlacement
756 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
757 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
760 uint64_t EntryFreq = MBFI->getEntryFreq(); in isProfitableToTailDup()
786 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
999 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1403 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
1429 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
1601 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
1603 MBFI->printBlockFreq(dbgs(), CandidateFreq) << " (freq)\n"); in selectBestCandidateBlock()
[all …]
DShrinkWrap.cpp128 MachineBlockFrequencyInfo *MBFI; member in __anonaebcf7770111::ShrinkWrap
194 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
197 EntryFreq = MBFI->getEntryFreq(); in init()
538 << MBFI->getBlockFreq(Save).getFrequency() in runOnMachineFunction()
541 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction()
544 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction()
545 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
DCalcSpillWeights.cpp36 const MachineBlockFrequencyInfo &MBFI, in calculateSpillWeightsAndHints() argument
42 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints()
191 totalWeight += LiveIntervals::getSpillWeight(true, false, &MBFI, localMBB); in weightCalcHelper()
192 totalWeight += LiveIntervals::getSpillWeight(false, true, &MBFI, localMBB); in weightCalcHelper()
256 weight = LiveIntervals::getSpillWeight(writes, reads, &MBFI, *mi); in weightCalcHelper()
DSpillPlacement.cpp209 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
210 setThreshold(MBFI->getEntryFreq()); in runOnMachineFunction()
213 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
245 nodes[n].BiasN = (MBFI->getEntryFreq() / 16); in activate()
DBranchFolding.h139 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper()
151 const MachineBlockFrequencyInfo &MBFI;
DRegAllocPBQP.cpp441 MachineBlockFrequencyInfo &MBFI = G.getMetadata().MBFI; in apply() local
455 const float Scale = 1.0f / MBFI.getEntryFreq(); in apply()
456 PBQP::PBQPNum CBenefit = MBFI.getBlockFreq(&MBB).getFrequency() * Scale; in apply()
792 MachineBlockFrequencyInfo &MBFI = in runOnMachineFunction() local
798 MBFI, normalizePBQPSpillWeight); in runOnMachineFunction()
841 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
/external/llvm/lib/CodeGen/
DMachineBlockFrequencyInfo.cpp103 const MachineBlockFrequencyInfo *MBFI) { in getEdgeAttributes()
105 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
139 if (!MBFI) in runOnMachineFunction()
140 MBFI.reset(new ImplType); in runOnMachineFunction()
141 MBFI->calculate(F, MBPI, MLI); in runOnMachineFunction()
152 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory()
169 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
174 const Function *F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
175 return MBFI ? MBFI->getBlockProfileCount(*F, MBB) : None; in getBlockProfileCount()
179 return MBFI ? MBFI->getFunction() : nullptr; in getFunction()
[all …]
DMachineBlockPlacement.cpp251 std::unique_ptr<BranchFolder::MBFIWrapper> MBFI; member in __anond3af580f0311::MachineBlockPlacement
621 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
643 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
750 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
752 MBFI->printBlockFreq(dbgs(), CandidateFreq) << " (freq)\n"); in selectBestCandidateBlock()
921 MBFI->printBlockFreq(dbgs(), Pred) << " freq\n"); in findBestLoopTop()
925 BlockFrequency PredFreq = MBFI->getBlockFreq(Pred); in findBestLoopTop()
1022 BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb; in findBestLoopExit()
1025 MBFI->printBlockFreq(dbgs(), ExitEdgeFreq) << ")\n"); in findBestLoopExit()
1147 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, HeaderBB); in rotateLoopWithProfile()
[all …]
DShrinkWrap.cpp114 MachineBlockFrequencyInfo *MBFI; member in __anone305433f0111::ShrinkWrap
166 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
168 EntryFreq = MBFI->getEntryFreq(); in init()
488 << MBFI->getBlockFreq(Save).getFrequency() << "\nRestore: " in runOnMachineFunction()
490 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction()
493 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction()
494 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
DBranchFolding.h33 MBFIWrapper &MBFI,
113 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper()
122 const MachineBlockFrequencyInfo &MBFI;
DSpillPlacement.cpp201 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
202 setThreshold(MBFI->getEntryFreq()); in runOnMachineFunction()
205 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
237 nodes[n].BiasN = (MBFI->getEntryFreq() / 16); in activate()
DCalcSpillWeights.cpp30 const MachineBlockFrequencyInfo &MBFI, in calculateSpillWeightsAndHints() argument
36 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints()
173 weight = LiveIntervals::getSpillWeight(writes, reads, &MBFI, *mi); in calculateSpillWeightAndHint()
DMachineSink.cpp64 const MachineBlockFrequencyInfo *MBFI; member in __anon953a4dc00111::MachineSinking
271 MBFI = UseBlockFreqInfo ? &getAnalysis<MachineBlockFrequencyInfo>() : nullptr; in runOnMachineFunction()
570 uint64_t LHSFreq = MBFI ? MBFI->getBlockFreq(L).getFrequency() : 0; in GetAllSortedSuccessors()
571 uint64_t RHSFreq = MBFI ? MBFI->getBlockFreq(R).getFrequency() : 0; in GetAllSortedSuccessors()
DRegAllocPBQP.cpp414 MachineBlockFrequencyInfo &MBFI = G.getMetadata().MBFI; in apply() local
429 const float Scale = 1.0f / MBFI.getEntryFreq(); in apply()
430 PBQP::PBQPNum CBenefit = MBFI.getBlockFreq(&MBB).getFrequency() * Scale; in apply()
743 MachineBlockFrequencyInfo &MBFI = in runOnMachineFunction() local
749 MBFI, normalizePBQPSpillWeight); in runOnMachineFunction()
793 PBQPRAGraph G(PBQPRAGraph::GraphMetadata(MF, LIS, MBFI)); in runOnMachineFunction()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineBlockFrequencyInfo.cpp33 MBFI = new BlockFrequencyImpl<MachineBasicBlock, MachineFunction, in MachineBlockFrequencyInfo()
38 delete MBFI; in ~MachineBlockFrequencyInfo()
49 MBFI->doFunction(&F, &MBPI); in runOnMachineFunction()
60 return MBFI->getBlockFreq(MBB); in getBlockFreq()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp90 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
93 MBFI = nullptr; in init()
97 MORE = llvm::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in init()
393 assert((MBFI || !BestCost) && "Costs comparison require MBFI"); in computeMapping()
399 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
462 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
811 const MachineBlockFrequencyInfo *MBFI = in frequency() local
813 if (!MBFI) in frequency()
815 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
819 const MachineBlockFrequencyInfo *MBFI = in frequency() local
[all …]
/external/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp49 MBFI(nullptr), MBPI(nullptr), OptMode(RunningMode) { in RegBankSelect()
64 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
67 MBFI = nullptr; in init()
349 assert((MBFI || !BestCost) && "Costs comparison require MBFI"); in computeMapping()
352 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
411 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
725 const MachineBlockFrequencyInfo *MBFI = in frequency() local
727 if (!MBFI) in frequency()
729 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
733 const MachineBlockFrequencyInfo *MBFI = in frequency() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineOptimizationRemarkEmitter.h148 MachineBlockFrequencyInfo *MBFI) in MachineOptimizationRemarkEmitter() argument
149 : MF(MF), MBFI(MBFI) {} in MachineOptimizationRemarkEmitter()
186 MachineBlockFrequencyInfo *MBFI; variable
197 bool shouldEmitVerbose() { return MBFI != nullptr; } in shouldEmitVerbose()
DCalcSpillWeights.h56 const MachineBlockFrequencyInfo &MBFI; variable
65 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF()
102 const MachineBlockFrequencyInfo &MBFI,
/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,
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyRegColoring.cpp67 const MachineBlockFrequencyInfo *MBFI, in computeWeight() argument
71 weight += LiveIntervals::getSpillWeight(MO.isDef(), MO.isUse(), MBFI, in computeWeight()
91 const MachineBlockFrequencyInfo *MBFI = in runOnMachineFunction() local
111 LI->weight = computeWeight(MRI, MBFI, VReg); in runOnMachineFunction()

123