Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DLoopSink.cpp84 T += BFI.getBlockFreq(B); in adjustedSumFreq()
144 BFI.getBlockFreq(ColdestBB)) { in findBBsToSinkInto()
163 BFI.getBlockFreq(L.getLoopPreheader())) in findBBsToSinkInto()
276 const BlockFrequency PreheaderFreq = BFI.getBlockFreq(Preheader); in sinkLoopInvariantInstructions()
281 return BFI.getBlockFreq(BB) > PreheaderFreq; in sinkLoopInvariantInstructions()
295 if (BFI.getBlockFreq(B) < BFI.getBlockFreq(L.getLoopPreheader())) { in sinkLoopInvariantInstructions()
300 return BFI.getBlockFreq(A) < BFI.getBlockFreq(B); in sinkLoopInvariantInstructions()
DConstantHoisting.cpp281 if (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
282 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)) in findBestInsertionSet()
302 (InsertPtsFreq > BFI.getBlockFreq(Node) || in findBestInsertionSet()
303 (InsertPtsFreq == BFI.getBlockFreq(Node) && InsertPts.size() > 1)))) { in findBestInsertionSet()
305 ParentPtsFreq += BFI.getBlockFreq(Node); in findBestInsertionSet()
DJumpThreading.cpp2311 auto NewBBFreq = BFI->getBlockFreq(PredPredBB) * in threadThroughTwoBasicBlocks()
2432 BFI->getBlockFreq(PredBB) * BPI->getEdgeProbability(PredBB, BB); in threadEdge()
2492 Pred, BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, BB))); in splitBlockPreds()
2542 auto BBOrigFreq = BFI->getBlockFreq(BB); in updateBlockFreqAndEdgeWeight()
2543 auto NewBBFreq = BFI->getBlockFreq(NewBB); in updateBlockFreqAndEdgeWeight()
2794 BFI->getBlockFreq(Pred) * BPI->getEdgeProbability(Pred, NewBB); in unfoldSelectInstr()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/
DMBFIWrapper.cpp20 BlockFrequency MBFIWrapper::getBlockFreq(const MachineBasicBlock *MBB) const { in getBlockFreq() function in MBFIWrapper
26 return MBFI.getBlockFreq(MBB); in getBlockFreq()
48 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq()
DMachineBlockPlacement.cpp452 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency()
843 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
844 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
873 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
1086 BlockFrequency EdgeFreq = MBFI->getBlockFreq(SuccPred) * in getBestTrellisSuccessor()
1538 BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb; in hasBetterLayoutPredecessor()
1565 MBFI->getBlockFreq(Pred) * MBPI->getEdgeProbability(Pred, Succ); in hasBetterLayoutPredecessor()
1732 BlockFrequency CandidateFreq = MBFI->getBlockFreq(MBB); in selectBestCandidateBlock()
1952 BlockFrequency EdgeFreq = MBFI->getBlockFreq(Pred) * in TopFallThroughFreq()
1992 FallThrough2Exit = MBFI->getBlockFreq(NewTop) * in FallThroughGains()
[all …]
DShrinkWrap.cpp547 << MBFI->getBlockFreq(Save).getFrequency() in runOnMachineFunction()
550 << MBFI->getBlockFreq(Restore).getFrequency() << '\n'); in runOnMachineFunction()
553 if (((IsSaveCheap = EntryFreq >= MBFI->getBlockFreq(Save).getFrequency()) && in runOnMachineFunction()
554 EntryFreq >= MBFI->getBlockFreq(Restore).getFrequency()) && in runOnMachineFunction()
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()
DMachineCSE.cpp932 return MBFI->getBlockFreq(CandidateBB) <= in isProfitableToHoistInto()
933 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
DMachineSizeOpts.cpp207 BlockFrequency BlockFreq = MBFIW->getBlockFreq(MBB); in shouldOptimizeForSize()
DSelectOptimize.cpp427 BFI->setBlockFreq(EndBlock, BFI->getBlockFreq(StartBlock).getFrequency()); in convertProfitableSIGroups()
787 if (BFI->getBlockFreq(II->getParent()) < BFI->getBlockFreq(I->getParent())) in getExclBackwardsSlice()
DSpillPlacement.cpp209 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
/openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/
DMachineBlockFrequencyInfo.h64 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
69 return getBlockFreq(MBB).getFrequency() * (1.0f / getEntryFreq()); in getBlockFreqRelativeToEntryBlock()
DMBFIWrapper.h31 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DBlockFrequencyInfo.cpp203 BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const { in getBlockFreq() function in BlockFrequencyInfo
204 return BFI ? BFI->getBlockFreq(BB) : 0; in getBlockFreq()
239 APInt OldFreq(128, BFI->getBlockFreq(ReferenceBB).getFrequency()); in setBlockFreqAndScale()
242 BBFreq = BFI->getBlockFreq(BB).getFrequency(); in setBlockFreqAndScale()
DHeatUtils.cpp56 uint64_t freqVal = BFI->getBlockFreq(&BB).getFrequency(); in getMaxFreq()
DCFGPrinter.cpp321 uint64_t NodeFreq = BFI->getBlockFreq(Node).getFrequency(); in isNodeHidden()
DBlockFrequencyInfoImpl.cpp573 BlockFrequencyInfoImplBase::getBlockFreq(const BlockNode &Node) const { in getBlockFreq() function in BlockFrequencyInfoImplBase
592 return getProfileCountFromFreq(F, getBlockFreq(Node).getFrequency(), in getBlockProfileCount()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DBreakCriticalEdges.cpp390 BFI->setBlockFreq(BodyBlock, BFI->getBlockFreq(Target).getFrequency()); in SplitIndirectBrCriticalEdges()
410 BlockFreqForDirectSucc += BFI->getBlockFreq(Src) * in SplitIndirectBrCriticalEdges()
416 BFI->getBlockFreq(Target) - BlockFreqForDirectSucc; in SplitIndirectBrCriticalEdges()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
DRegBankSelect.cpp450 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
922 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
930 return MBFI->getBlockFreq(&MBB).getFrequency(); in frequency()
952 return MBFI->getBlockFreq(DstOrSplit).getFrequency(); in frequency()
959 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/openbsd/src/gnu/llvm/llvm/include/llvm/Analysis/
DBlockFrequencyInfoImpl.h524 BlockFrequency getBlockFreq(const BlockNode &Node) const;
1019 BlockFrequency getBlockFreq(const BlockT *BB) const {
1020 return BlockFrequencyInfoImplBase::getBlockFreq(getNode(BB));
1731 << ", int = " << getBlockFreq(&BB).getFrequency();
1836 std::max(MaxFrequency, Graph->getBlockFreq(N).getFrequency());
1839 BlockFrequency Freq = Graph->getBlockFreq(Node);
1867 OS << Graph->getBlockFreq(Node).getFrequency();
1900 BlockFrequency EFreq = BFI->getBlockFreq(Node) * BP;
DBlockFrequencyInfo.h65 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
DCFGPrinter.h85 return BFI->getBlockFreq(BB).getFrequency(); in getFreq()
/openbsd/src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
DSpeculateAnalyses.cpp105 BBFreqs.push_back({I, BFI.getBlockFreq(I).getFrequency()}); in operator ()()
249 BBFreqs.push_back({I, BFI.getBlockFreq(I).getFrequency()}); in queryCFG()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/
DSyntheticCountsPropagation.cpp115 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
DCFGMST.h128 (BFI != nullptr ? BFI->getBlockFreq(&BB).getFrequency() : 2); in buildEdges()

12