Home
last modified time | relevance | path

Searched refs:getBlockFreq (Results 1 – 25 of 40) sorted by relevance

12

/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopSink.cpp98 T += BFI.getBlockFreq(B); in adjustedSumFreq()
158 BFI.getBlockFreq(ColdestBB)) { in findBBsToSinkInto()
177 BFI.getBlockFreq(L.getLoopPreheader())) in findBBsToSinkInto()
291 const BlockFrequency PreheaderFreq = BFI.getBlockFreq(Preheader); in sinkLoopInvariantInstructions()
296 return BFI.getBlockFreq(BB) > PreheaderFreq; in sinkLoopInvariantInstructions()
315 if (BFI.getBlockFreq(B) < BFI.getBlockFreq(L.getLoopPreheader())) { in sinkLoopInvariantInstructions()
320 return BFI.getBlockFreq(A) < BFI.getBlockFreq(B); in sinkLoopInvariantInstructions()
H A DConstantHoisting.cpp283 if (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
284 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)) in findBestInsertionSet()
304 (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
305 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)))) { in findBestInsertionSet()
307 ParentPtsFreq += BFI.getBlockFreq(Node); in findBestInsertionSet()
H A DJumpThreading.cpp2277 auto NewBBFreq = BFI->getBlockFreq(PredPredBB) * in threadThroughTwoBasicBlocks()
2398 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in threadEdge()
2458 Pred, BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, BB))); in splitBlockPreds()
2519 auto BBOrigFreq = BFI->getBlockFreq(BB); in updateBlockFreqAndEdgeWeight()
2520 auto NewBBFreq = BFI->getBlockFreq(NewBB); in updateBlockFreqAndEdgeWeight()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMBFIWrapper.cpp19 BlockFrequency MBFIWrapper::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in MBFIWrapper
25 return MBFI.getBlockFreq(MBB); in getBlockFreq()
47 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq()
H A DMachineBlockPlacement.cpp429 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency()
811 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
812 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
841 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
1960 FallThrough2Exit = MBFI->getBlockFreq(NewTop) * in FallThroughGains()
2416 auto EdgeFreq = MBFI->getBlockFreq(Pred) * in rotateLoopWithProfile()
2491 auto TailBBFreq = MBFI->getBlockFreq(TailBB); in rotateLoopWithProfile()
2544 LoopFreq += MBFI->getBlockFreq(LoopPred) * in collectLoopBlockSet()
2894 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in alignBlocks()
3173 return MBFI->getBlockFreq(A) > MBFI->getBlockFreq(B); in findDuplicateCandidates()
[all …]
H A DShrinkWrap.cpp539 << MBFI->getBlockFreq(Save).getFrequency() in runOnMachineFunction()
542 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction()
545 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction()
546 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
H A DMachineBlockFrequencyInfo.cpp230 MachineBlockFrequencyInfo::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in MachineBlockFrequencyInfo
231 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
263 auto NewSuccFreq = MBFI->getBlockFreq(&NewPredecessor) * in onEdgeSplit()
H A DMachineCSE.cpp907 return MBFI->getBlockFreq(CandidateBB) <= in isProfitableToHoistInto()
908 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
H A DMachineSizeOpts.cpp207 BlockFrequency BlockFreq = MBFIW->getBlockFreq(MBB); in shouldOptimizeForSize()
H A DSpillPlacement.cpp209 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
H A DInlineSpiller.cpp1432 SpillsInSubTreeMap[*RIt].second = MBFI.getBlockFreq(Block); in runHoistSpills()
1473 if (SubTreeCost > MBFI.getBlockFreq(Block) * MarginProb) { in runHoistSpills()
1498 SubTreeCost = MBFI.getBlockFreq(Block); in runHoistSpills()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineBlockFrequencyInfo.h64 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
69 return getBlockFreq(MBB).getFrequency() * (1.0f / getEntryFreq()); in getBlockFreqRelativeToEntryBlock()
H A DMBFIWrapper.h29 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DBlockFrequencyInfo.cpp204 BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const { in getBlockFreq() function in BlockFrequencyInfo
205 return BFI ? BFI->getBlockFreq(BB) : 0; in getBlockFreq()
240 APInt OldFreq(128, BFI->getBlockFreq(ReferenceBB).getFrequency()); in setBlockFreqAndScale()
243 BBFreq = BFI->getBlockFreq(BB).getFrequency(); in setBlockFreqAndScale()
H A DHeatUtils.cpp55 uint64_t freqVal = BFI->getBlockFreq(&BB).getFrequency(); in getMaxFreq()
H A DBlockFrequencyInfoImpl.cpp560 BlockFrequencyInfoImplBase::getBlockFreq(const BlockNode &Node) const { in getBlockFreq() function in BlockFrequencyInfoImplBase
579 return getProfileCountFromFreq(F, getBlockFreq(Node).getFrequency(), in getBlockProfileCount()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h524 BlockFrequency getBlockFreq(const BlockNode &Node) const;
980 BlockFrequency getBlockFreq(const BlockT *BB) const {
981 return BlockFrequencyInfoImplBase::getBlockFreq(getNode(BB));
1405 << ", int = " << getBlockFreq(&BB).getFrequency();
1510 std::max(MaxFrequency, Graph->getBlockFreq(N).getFrequency());
1513 BlockFrequency Freq = Graph->getBlockFreq(Node);
1541 OS << Graph->getBlockFreq(Node).getFrequency();
1574 BlockFrequency EFreq = BFI->getBlockFreq(Node) * BP;
H A DBlockFrequencyInfo.h65 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
H A DCFGPrinter.h84 return BFI->getBlockFreq(BB).getFrequency(); in getFreq()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp399 BFI->setBlockFreq(BodyBlock, BFI->getBlockFreq(Target).getFrequency()); in SplitIndirectBrCriticalEdges()
419 BlockFreqForDirectSucc += BFI->getBlockFreq(Src) * in SplitIndirectBrCriticalEdges()
425 BFI->getBlockFreq(Target) - BlockFreqForDirectSucc; in SplitIndirectBrCriticalEdges()
H A DInlineFunction.cpp1585 uint64_t Freq = CalleeBFI->getBlockFreq(OrigBB).getFrequency(); in updateCallerBFI()
1590 uint64_t NewFreq = CallerBFI->getBlockFreq(ClonedBB).getFrequency(); in updateCallerBFI()
1598 EntryClone, CallerBFI->getBlockFreq(CallSiteBlock).getFrequency(), in updateCallerBFI()
2516 AfterCallBB, IFI.CallerBFI->getBlockFreq(OrigBB).getFrequency()); in InlineFunction()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp452 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
918 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
926 return MBFI->getBlockFreq(&MBB).getFrequency(); in frequency()
948 return MBFI->getBlockFreq(DstOrSplit).getFrequency(); in frequency()
955 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/netbsd/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DSpeculateAnalyses.cpp105 BBFreqs.push_back({I, BFI.getBlockFreq(I).getFrequency()}); in operator ()()
249 BBFreqs.push_back({I, BFI.getBlockFreq(I).getFrequency()}); in queryCFG()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp121 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h128 (BFI != nullptr ? BFI->getBlockFreq(&BB).getFrequency() : 2); in buildEdges()

12