Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DLoopSink.cpp87 T += BFI.getBlockFreq(B); in adjustedSumFreq()
147 BFI.getBlockFreq(ColdestBB)) { in findBBsToSinkInto()
166 BFI.getBlockFreq(L.getLoopPreheader())) in findBBsToSinkInto()
268 const BlockFrequency PreheaderFreq = BFI.getBlockFreq(Preheader); in sinkLoopInvariantInstructions()
273 return BFI.getBlockFreq(BB) > PreheaderFreq; in sinkLoopInvariantInstructions()
290 if (BFI.getBlockFreq(B) < BFI.getBlockFreq(L.getLoopPreheader())) { in sinkLoopInvariantInstructions()
296 return BFI.getBlockFreq(A) < BFI.getBlockFreq(B); in sinkLoopInvariantInstructions()
H A DConstantHoisting.cpp270 if (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
271 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)) in findBestInsertionSet()
291 (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
292 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)))) { in findBestInsertionSet()
294 ParentPtsFreq += BFI.getBlockFreq(Node); in findBestInsertionSet()
H A DJumpThreading.cpp1974 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in ThreadEdge()
2089 Pred, BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, BB))); in SplitBlockPreds()
2150 auto BBOrigFreq = BFI->getBlockFreq(BB); in UpdateBlockFreqAndEdgeWeight()
2151 auto NewBBFreq = BFI->getBlockFreq(NewBB); in UpdateBlockFreqAndEdgeWeight()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DBlockFrequencyInfo.cpp202 BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const { in getBlockFreq() function in BlockFrequencyInfo
203 return BFI ? BFI->getBlockFreq(BB) : 0; in getBlockFreq()
237 APInt OldFreq(128, BFI->getBlockFreq(ReferenceBB).getFrequency()); in setBlockFreqAndScale()
240 BBFreq = BFI->getBlockFreq(BB).getFrequency(); in setBlockFreqAndScale()
H A DBlockFrequencyInfoImpl.cpp553 BlockFrequencyInfoImplBase::getBlockFreq(const BlockNode &Node) const { in getBlockFreq() function in BlockFrequencyInfoImplBase
562 return getProfileCountFromFreq(F, getBlockFreq(Node).getFrequency()); in getBlockProfileCount()
H A DInlineCost.cpp814 auto CallSiteFreq = CallerBFI->getBlockFreq(CallSiteBB); in isColdCallSite()
816 CallerBFI->getBlockFreq(&(CS.getCaller()->getEntryBlock())); in isColdCallSite()
839 auto CallSiteFreq = CallerBFI->getBlockFreq(CallSiteBB).getFrequency(); in getHotCallSiteThreshold()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DMachineBlockPlacement.cpp756 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
757 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
786 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
999 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1601 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
1804 BlockFrequency PredFreq = MBFI->getBlockFreq(Pred); in findBestLoopTop()
2144 auto TailBBFreq = MBFI->getBlockFreq(TailBB); in rotateLoopWithProfile()
2197 LoopFreq += MBFI->getBlockFreq(LoopPred) * in collectLoopBlockSet()
2201 auto Freq = MBFI->getBlockFreq(LoopBB).getFrequency(); in collectLoopBlockSet()
2528 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in alignBlocks()
[all …]
H A DShrinkWrap.cpp538 << 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()
H A DMachineBlockFrequencyInfo.cpp221 MachineBlockFrequencyInfo::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in MachineBlockFrequencyInfo
222 return MBFI ? MBFI->getBlockFreq(MBB) : 0; in getBlockFreq()
H A DBranchFolding.h141 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
H A DBranchFolding.cpp473 MBBFreqInfo.setBlockFreq(NewMBB, MBBFreqInfo.getBlockFreq(&CurMBB)); in SplitMBBAt()
551 BranchFolder::MBFIWrapper::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in BranchFolder::MBFIWrapper
557 return MBFI.getBlockFreq(MBB); in getBlockFreq()
568 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq()
1252 BlockFrequency BlockFreq = MBBFreqInfo.getBlockFreq(SrcMBB); in setCommonTailEdgeWeights()
H A DSpillPlacement.cpp213 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
H A DMachineSink.cpp591 uint64_t LHSFreq = MBFI ? MBFI->getBlockFreq(L).getFrequency() : 0; in GetAllSortedSuccessors()
592 uint64_t RHSFreq = MBFI ? MBFI->getBlockFreq(R).getFrequency() : 0; in GetAllSortedSuccessors()
H A DInlineSpiller.cpp1325 SpillsInSubTreeMap[*RIt].second = MBFI.getBlockFreq(Block); in runHoistSpills()
1369 if (SubTreeCost > MBFI.getBlockFreq(Block) * MarginProb) { in runHoistSpills()
1394 SubTreeCost = MBFI.getBlockFreq(Block); in runHoistSpills()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h526 BlockFrequency getBlockFreq(const BlockNode &Node) const;
971 BlockFrequency getBlockFreq(const BlockT *BB) const {
972 return BlockFrequencyInfoImplBase::getBlockFreq(getNode(BB));
1344 << ", int = " << getBlockFreq(&BB).getFrequency();
1394 std::max(MaxFrequency, Graph->getBlockFreq(N).getFrequency());
1397 BlockFrequency Freq = Graph->getBlockFreq(Node);
1425 OS << Graph->getBlockFreq(Node).getFrequency();
1458 BlockFrequency EFreq = BFI->getBlockFreq(Node) * BP;
H A DBlockFrequencyInfo.h66 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp381 BFI->setBlockFreq(BodyBlock, BFI->getBlockFreq(Target).getFrequency()); in SplitIndirectBrCriticalEdges()
401 BlockFreqForDirectSucc += BFI->getBlockFreq(Src) * in SplitIndirectBrCriticalEdges()
407 BFI->getBlockFreq(Target) - BlockFreqForDirectSucc; in SplitIndirectBrCriticalEdges()
H A DInlineFunction.cpp1424 uint64_t Freq = CalleeBFI->getBlockFreq(OrigBB).getFrequency(); in updateCallerBFI()
1429 uint64_t NewFreq = CallerBFI->getBlockFreq(ClonedBB).getFrequency(); in updateCallerBFI()
1437 EntryClone, CallerBFI->getBlockFreq(CallSiteBlock).getFrequency(), in updateCallerBFI()
2250 AfterCallBB, IFI.CallerBFI->getBlockFreq(OrigBB).getFrequency()); in InlineFunction()
H A DCodeExtractor.cpp1288 BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, header); in extractCodeRegion()
1307 BF += BFI->getBlockFreq(Block) * BPI->getEdgeProbability(Block, *SI); in extractCodeRegion()
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp399 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
821 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
829 return MBFI->getBlockFreq(&MBB).getFrequency(); in frequency()
851 return MBFI->getBlockFreq(DstOrSplit).getFrequency(); in frequency()
858 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/
H A DMachineBlockFrequencyInfo.h60 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp123 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
H A DPartialInlining.cpp715 Cloner.ClonedFuncBFI->getBlockFreq(&Cloner.ClonedFunc->getEntryBlock()); in getOutliningCallBBRelativeFreq()
717 Cloner.ClonedFuncBFI->getBlockFreq(OutliningCallBB); in getOutliningCallBBRelativeFreq()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h124 (BFI != nullptr ? BFI->getBlockFreq(&*BB).getFrequency() : 2); in buildEdges()
H A DPGOMemOPSizeOpt.cpp341 auto OrigBBFreq = BFI.getBlockFreq(BB); in perform()

12