Home
last modified time | relevance | path

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

12345

/external/llvm-project/llvm/lib/CodeGen/
DMachineSizeOpts.cpp33 const MachineBlockFrequencyInfo *MBFI) { in isColdBlock() argument
34 auto Count = MBFI->getBlockProfileCount(MBB); in isColdBlock()
40 const MachineBlockFrequencyInfo *MBFI) { in isColdBlock() argument
41 auto Count = MBFI->getProfileCountFromFreq(BlockFreq.getFrequency()); in isColdBlock()
49 const MachineBlockFrequencyInfo *MBFI) { in isHotBlockNthPercentile() argument
50 auto Count = MBFI->getBlockProfileCount(MBB); in isHotBlockNthPercentile()
57 const MachineBlockFrequencyInfo *MBFI) { in isHotBlockNthPercentile() argument
58 auto Count = MBFI->getProfileCountFromFreq(BlockFreq.getFrequency()); in isHotBlockNthPercentile()
65 const MachineBlockFrequencyInfo *MBFI) { in isColdBlockNthPercentile() argument
66 auto Count = MBFI->getBlockProfileCount(MBB); in isColdBlockNthPercentile()
[all …]
DMachineBlockFrequencyInfo.cpp154 const MachineBlockFrequencyInfo *MBFI) { in getEdgeAttributes()
156 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
195 if (!MBFI) in calculate()
196 MBFI.reset(new ImplType); in calculate()
197 MBFI->calculate(F, MBPI, MLI); in calculate()
206 MBFI->print(dbgs()); in calculate()
218 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory()
229 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
234 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
235 return MBFI ? MBFI->getBlockProfileCount(F, MBB) : None; in getBlockProfileCount()
[all …]
DMBFIWrapper.cpp25 return MBFI.getBlockFreq(MBB); in getBlockFreq()
40 return MBFI.getProfileCountFromFreq(I->second.getFrequency()); in getBlockProfileCount()
42 return MBFI.getBlockProfileCount(MBB); in getBlockProfileCount()
47 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq()
52 return MBFI.printBlockFreq(OS, Freq); in printBlockFreq()
56 MBFI.view(Name, isSimple); in view()
60 return MBFI.getEntryFreq(); in getEntryFreq()
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 = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in runOnMachineFunction()
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()
DMachineFunctionSplitter.cpp81 const MachineBlockFrequencyInfo *MBFI, in isColdBlock() argument
83 Optional<uint64_t> Count = MBFI->getBlockProfileCount(&MBB); in isColdBlock()
121 auto *MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction() local
130 if (isColdBlock(MBB, MBFI, PSI)) in runOnMachineFunction()
DMachineBlockPlacement.cpp357 std::unique_ptr<MBFIWrapper> MBFI; member in __anon17d227c40111::MachineBlockPlacement
421 auto Count = MBFI->getBlockProfileCount(BB); in getBlockCountOrFrequency()
427 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency()
809 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
810 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
813 uint64_t EntryFreq = MBFI->getEntryFreq(); in isProfitableToTailDup()
839 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
1052 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1504 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
1531 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
[all …]
DLazyMachineBlockFrequencyInfo.cpp58 auto *MBFI = getAnalysisIfAvailable<MachineBlockFrequencyInfo>(); in calculateIfNotAvailable() local
59 if (MBFI) { in calculateIfNotAvailable()
61 return *MBFI; in calculateIfNotAvailable()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineSizeOpts.cpp31 const MachineBlockFrequencyInfo *MBFI) { in isColdBlock() argument
32 auto Count = MBFI->getBlockProfileCount(MBB); in isColdBlock()
40 const MachineBlockFrequencyInfo *MBFI) { in isHotBlockNthPercentile() argument
41 auto Count = MBFI->getBlockProfileCount(MBB); in isHotBlockNthPercentile()
50 const MachineBlockFrequencyInfo &MBFI) { in isFunctionColdInCallGraph() argument
55 if (!isColdBlock(&MBB, PSI, &MBFI)) in isFunctionColdInCallGraph()
66 const MachineBlockFrequencyInfo &MBFI) { in isFunctionHotInCallGraphNthPercentile() argument
72 if (isHotBlockNthPercentile(PercentileCutoff, &MBB, PSI, &MBFI)) in isFunctionHotInCallGraphNthPercentile()
82 const MachineBlockFrequencyInfo &MBFI) { in isFunctionColdInCallGraph()
83 return machine_size_opts_detail::isFunctionColdInCallGraph(MF, PSI, MBFI); in isFunctionColdInCallGraph()
[all …]
DMachineBlockFrequencyInfo.cpp154 const MachineBlockFrequencyInfo *MBFI) { in getEdgeAttributes()
156 Node, EI, MBFI, MBFI->getMBPI(), ViewHotFreqPercent); in getEdgeAttributes()
195 if (!MBFI) in calculate()
196 MBFI.reset(new ImplType); in calculate()
197 MBFI->calculate(F, MBPI, MLI); in calculate()
206 MBFI->print(dbgs()); in calculate()
218 void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); } in releaseMemory()
229 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
234 const Function &F = MBFI->getFunction()->getFunction(); in getBlockProfileCount()
235 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 = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in runOnMachineFunction()
DMachineBlockPlacement.cpp349 std::unique_ptr<BranchFolder::MBFIWrapper> MBFI; member in __anon60b6bfb80111::MachineBlockPlacement
776 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
777 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
780 uint64_t EntryFreq = MBFI->getEntryFreq(); in isProfitableToTailDup()
806 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
1019 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1469 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
1496 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
1665 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
1667 MBFI->printBlockFreq(dbgs(), CandidateFreq) << " (freq)\n"); in selectBestCandidateBlock()
[all …]
DLazyMachineBlockFrequencyInfo.cpp58 auto *MBFI = getAnalysisIfAvailable<MachineBlockFrequencyInfo>(); in calculateIfNotAvailable() local
59 if (MBFI) { in calculateIfNotAvailable()
61 return *MBFI; in calculateIfNotAvailable()
/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 __anonee1641960311::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 __anon32454b260111::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()
/external/llvm-project/llvm/include/llvm/CodeGen/
DCalcSpillWeights.h51 const MachineBlockFrequencyInfo &MBFI; variable
56 const MachineBlockFrequencyInfo &MBFI) in VirtRegAuxInfo() argument
57 : MF(MF), LIS(LIS), VRM(VRM), Loops(Loops), MBFI(MBFI) {} in VirtRegAuxInfo()
DMachineOptimizationRemarkEmitter.h147 MachineBlockFrequencyInfo *MBFI) in MachineOptimizationRemarkEmitter() argument
148 : MF(MF), MBFI(MBFI) {} in MachineOptimizationRemarkEmitter()
186 return MBFI; in getBFI()
193 MachineBlockFrequencyInfo *MBFI; variable
204 bool shouldEmitVerbose() { return MBFI != nullptr; } in shouldEmitVerbose()
DMBFIWrapper.h27 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper()
39 const MachineBlockFrequencyInfo &getMBFI() { return MBFI; } in getMBFI()
42 const MachineBlockFrequencyInfo &MBFI;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineOptimizationRemarkEmitter.h147 MachineBlockFrequencyInfo *MBFI) in MachineOptimizationRemarkEmitter() argument
148 : MF(MF), MBFI(MBFI) {} in MachineOptimizationRemarkEmitter()
186 return MBFI; in getBFI()
193 MachineBlockFrequencyInfo *MBFI; variable
204 bool shouldEmitVerbose() { return MBFI != nullptr; } in shouldEmitVerbose()
DCalcSpillWeights.h55 const MachineBlockFrequencyInfo &MBFI; variable
64 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF()
101 const MachineBlockFrequencyInfo &MBFI,
/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-10.0/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp89 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
92 MBFI = nullptr; in init()
96 MORE = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in init()
446 assert((MBFI || !BestCost) && "Costs comparison require MBFI"); in computeMapping()
452 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
515 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
884 const MachineBlockFrequencyInfo *MBFI = in frequency() local
886 if (!MBFI) in frequency()
888 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
892 const MachineBlockFrequencyInfo *MBFI = in frequency() local
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp89 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in init()
92 MBFI = nullptr; in init()
96 MORE = std::make_unique<MachineOptimizationRemarkEmitter>(MF, MBFI); in init()
446 assert((MBFI || !BestCost) && "Costs comparison require MBFI"); in computeMapping()
452 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
515 assert(MBFI && MBPI && "Cost computation requires MBFI and MBPI"); in computeMapping()
893 const MachineBlockFrequencyInfo *MBFI = in frequency() local
895 if (!MBFI) in frequency()
897 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
901 const MachineBlockFrequencyInfo *MBFI = in frequency() local
[all …]
/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,

12345