/external/llvm/lib/CodeGen/ |
D | MachineBlockFrequencyInfo.cpp | 144 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()
|
D | MachineBlockPlacement.cpp | 216 const MachineBlockFrequencyInfo *MBFI; member in __anona78bb55b0311::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 …]
|
D | ShrinkWrap.cpp | 113 MachineBlockFrequencyInfo *MBFI; member in __anon6563b80b0111::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()
|
D | BranchFolding.h | 30 const MachineBlockFrequencyInfo &MBFI, 105 MBFIWrapper(const MachineBlockFrequencyInfo &I) : MBFI(I) {} in MBFIWrapper() 110 const MachineBlockFrequencyInfo &MBFI;
|
D | SpillPlacement.cpp | 188 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()
|
D | MachineSink.cpp | 63 const MachineBlockFrequencyInfo *MBFI; member in __anon63675c0c0111::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()
|
D | CalcSpillWeights.cpp | 30 const MachineBlockFrequencyInfo &MBFI, in calculateSpillWeightsAndHints() argument 36 VirtRegAuxInfo VRAI(MF, LIS, VRM, MLI, MBFI, norm); in calculateSpillWeightsAndHints() 174 writes, reads, &MBFI, mi); in calculateSpillWeightAndHint()
|
D | RegAllocPBQP.cpp | 407 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()
|
D | SpillPlacement.h | 48 const MachineBlockFrequencyInfo *MBFI; variable
|
D | StackSlotColoring.cpp | 52 const MachineBlockFrequencyInfo *MBFI; member in __anoned0f60970111::StackSlotColoring 160 li.weight += LiveIntervals::getSpillWeight(false, true, MBFI, MI); in ScanForSpillSlotRefs() 435 MBFI = &getAnalysis<MachineBlockFrequencyInfo>(); in runOnMachineFunction()
|
D | RegAllocGreedy.cpp | 125 MachineBlockFrequencyInfo *MBFI; member in __anon11312c0b0111::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()
|
D | LiveRangeEdit.cpp | 406 const MachineBlockFrequencyInfo &MBFI) { in calculateRegClassAndHint() argument 407 VirtRegAuxInfo VRAI(MF, LIS, VRM, Loops, MBFI); in calculateRegClassAndHint()
|
D | InlineSpiller.cpp | 70 const MachineBlockFrequencyInfo &MBFI; member in __anon056505dc0111::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()
|
D | SplitKit.h | 219 const MachineBlockFrequencyInfo &MBFI; variable
|
D | IfConversion.cpp | 164 const MachineBlockFrequencyInfo *MBFI; member in __anon959a42170111::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()
|
D | LiveIntervalAnalysis.cpp | 842 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()
|
D | SplitKit.cpp | 327 MBFI(mbfi), Edit(nullptr), OpenIdx(0), SpillMode(SM_Partition), in SplitEditor() 1101 Edit->calculateRegClassAndHint(VRM.getMachineFunction(), SA.Loops, MBFI); in finish()
|
D | BranchFolding.cpp | 532 return MBFI.getBlockFreq(MBB); in getBlockFreq()
|
/external/llvm/include/llvm/CodeGen/ |
D | CalcSpillWeights.h | 57 const MachineBlockFrequencyInfo &MBFI; variable 66 : MF(mf), LIS(lis), VRM(vrm), Loops(loops), MBFI(mbfi), normalize(norm) {} in MF() 77 const MachineBlockFrequencyInfo &MBFI,
|
D | MachineBlockFrequencyInfo.h | 31 std::unique_ptr<ImplType> MBFI; variable
|
D | RegAllocPBQP.h | 147 MachineBlockFrequencyInfo &MBFI) in GraphMetadata() argument 148 : MF(MF), LIS(LIS), MBFI(MBFI) {} in GraphMetadata() 152 MachineBlockFrequencyInfo &MBFI; variable
|
D | LiveIntervalAnalysis.h | 107 const MachineBlockFrequencyInfo *MBFI,
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRegColoring.cpp | 64 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()
|