Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopSink.cpp82 T += BFI.getBlockFreq(B); in adjustedSumFreq()
142 BFI.getBlockFreq(ColdestBB)) { in findBBsToSinkInto()
161 BFI.getBlockFreq(L.getLoopPreheader())) in findBBsToSinkInto()
292 const BlockFrequency PreheaderFreq = BFI.getBlockFreq(Preheader); in sinkLoopInvariantInstructions()
297 return BFI.getBlockFreq(BB) > PreheaderFreq; in sinkLoopInvariantInstructions()
311 if (BFI.getBlockFreq(B) < BFI.getBlockFreq(L.getLoopPreheader())) { in sinkLoopInvariantInstructions()
316 return BFI.getBlockFreq(A) < BFI.getBlockFreq(B); in sinkLoopInvariantInstructions()
H A DConstantHoisting.cpp285 if (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
286 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)) in findBestInsertionSet()
306 (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
307 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)))) { in findBestInsertionSet()
309 ParentPtsFreq += BFI.getBlockFreq(Node); in findBestInsertionSet()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMBFIWrapper.cpp20 BlockFrequency MBFIWrapper::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in MBFIWrapper
26 return MBFI.getBlockFreq(MBB); in getBlockFreq()
H A DMachineBlockPlacement.cpp451 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency()
847 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
848 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
877 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
1090 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1542 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
1569 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
1736 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
1988 BlockFrequency EdgeFreq = MBFI->getBlockFreq(Pred) * in TopFallThroughFreq()
2028 FallThrough2Exit = MBFI->getBlockFreq(NewTop) * in FallThroughGains()
[all …]
H A DMachineBlockFrequencyInfo.cpp268 MachineBlockFrequencyInfo::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in MachineBlockFrequencyInfo
269 return MBFI ? MBFI->getBlockFreq(MBB) : BlockFrequency(0); in getBlockFreq()
301 auto NewSuccFreq = MBFI->getBlockFreq(&NewPredecessor) * in onEdgeSplit()
328 return printBlockFreq(MBFI, MBFI.getBlockFreq(&MBB)); in printBlockFreq()
H A DShrinkWrap.cpp645 EntryFreq < MBFI->getBlockFreq(NewSave) || in postShrinkWrapping()
680 assert((EntryFreq >= MBFI->getBlockFreq(Save) && in postShrinkWrapping()
681 EntryFreq >= MBFI->getBlockFreq(Restore)) && in postShrinkWrapping()
896 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save)) && in performShrinkWrapping()
897 EntryFreq >= MBFI->getBlockFreq(Restore)) && in performShrinkWrapping()
H A DMachineSizeOpts.cpp49 BlockFrequency BlockFreq = MBFIW->getBlockFreq(MBB); in shouldOptimizeForSize()
H A DMachineCSE.cpp934 return MBFI->getBlockFreq(CandidateBB) <= in isProfitableToHoistInto()
935 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
H A DSpillPlacement.cpp207 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
H A DSelectOptimize.cpp659 BFI->setBlockFreq(EndBlock, BFI->getBlockFreq(StartBlock)); in convertProfitableSIGroups()
1067 if (BFI->getBlockFreq(II->getParent()) < BFI->getBlockFreq(I->getParent())) in getExclBackwardsSlice()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfo.cpp200 BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const { in getBlockFreq() function in BlockFrequencyInfo
201 return BFI ? BFI->getBlockFreq(BB) : BlockFrequency(0); in getBlockFreq()
237 APInt OldFreq(128, BFI->getBlockFreq(ReferenceBB).getFrequency()); in setBlockFreqAndScale()
240 BBFreq = BFI->getBlockFreq(BB).getFrequency(); in setBlockFreqAndScale()
292 return printBlockFreq(BFI, BFI.getBlockFreq(&BB)); in printBlockFreq()
H A DHeatUtils.cpp56 uint64_t freqVal = BFI->getBlockFreq(&BB).getFrequency(); in getMaxFreq()
H A DBlockFrequencyInfoImpl.cpp568 BlockFrequencyInfoImplBase::getBlockFreq(const BlockNode &Node) const { in getBlockFreq() function in BlockFrequencyInfoImplBase
587 return getProfileCountFromFreq(F, getBlockFreq(Node), AllowSynthetic); in getBlockProfileCount()
H A DCFGPrinter.cpp187 BlockFrequency NodeFreq = BFI->getBlockFreq(Node); in runOnFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineBlockFrequencyInfo.h66 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
73 return static_cast<double>(getBlockFreq(MBB).getFrequency()) / in getBlockFreqRelativeToEntryBlock()
H A DMBFIWrapper.h30 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DBreakCriticalEdges.cpp387 BFI->setBlockFreq(BodyBlock, BFI->getBlockFreq(Target)); in SplitIndirectBrCriticalEdges()
407 BlockFreqForDirectSucc += BFI->getBlockFreq(Src) * in SplitIndirectBrCriticalEdges()
413 BFI->getBlockFreq(Target) - BlockFreqForDirectSucc; in SplitIndirectBrCriticalEdges()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp453 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) in computeMapping()
926 return MBFIWrapper->getMBFI().getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
934 return MBFIWrapper->getMBFI().getBlockFreq(&MBB).getFrequency(); in frequency()
957 return MBFI->getBlockFreq(DstOrSplit).getFrequency(); in frequency()
966 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h525 BlockFrequency getBlockFreq(const BlockNode &Node) const;
1016 BlockFrequency getBlockFreq(const BlockT *BB) const {
1017 return BlockFrequencyInfoImplBase::getBlockFreq(getNode(BB));
1723 << ", int = " << getBlockFreq(&BB).getFrequency();
1828 std::max(MaxFrequency, Graph->getBlockFreq(N).getFrequency());
1831 BlockFrequency Freq = Graph->getBlockFreq(Node);
1859 OS << Graph->getBlockFreq(Node).getFrequency();
1892 BlockFrequency EFreq = BFI->getBlockFreq(Node) * BP;
H A DBlockFrequencyInfo.h66 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
H A DCFGPrinter.h89 return BFI->getBlockFreq(BB).getFrequency(); in getFreq()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DSpeculateAnalyses.cpp104 BBFreqs.push_back({I, BFI.getBlockFreq(I).getFrequency()}); in operator ()()
248 BBFreqs.push_back({I, BFI.getBlockFreq(I).getFrequency()}); in queryCFG()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp115 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopAlign.cpp156 BlockFrequency BlockFreq = MBFI->getBlockFreq(&MBB); in attemptToBalignSmallLoop()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DCFGMST.h142 (BFI != nullptr ? BFI->getBlockFreq(&BB).getFrequency() : 2); in buildEdges()

12