Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DBlockFrequencyInfoTest.cpp69 uint64_t BB0Freq = BFI.getBlockFreq(&BB0).getFrequency(); in TEST_F()
70 uint64_t BB1Freq = BFI.getBlockFreq(BB1).getFrequency(); in TEST_F()
71 uint64_t BB2Freq = BFI.getBlockFreq(BB2).getFrequency(); in TEST_F()
72 uint64_t BB3Freq = BFI.getBlockFreq(BB3).getFrequency(); in TEST_F()
88 EXPECT_EQ(BFI.getBlockFreq(&BB0).getFrequency(), 2 * BB0Freq); in TEST_F()
89 EXPECT_EQ(BFI.getBlockFreq(BB1).getFrequency(), 2 * BB1Freq); in TEST_F()
90 EXPECT_EQ(BFI.getBlockFreq(BB2).getFrequency(), 2 * BB2Freq); in TEST_F()
91 EXPECT_EQ(BFI.getBlockFreq(BB3).getFrequency(), BB3Freq); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A 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()
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()
/llvm-project-15.0.7/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()
48 return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); in printBlockFreq()
H A DMachineBlockPlacement.cpp440 return MBFI->getBlockFreq(BB); in getBlockCountOrFrequency()
831 auto BBFreq = MBFI->getBlockFreq(BB); in isProfitableToTailDup()
832 auto SuccFreq = MBFI->getBlockFreq(Succ); in isProfitableToTailDup()
861 auto Freq = MBFI->getBlockFreq(SuccPred) in isProfitableToTailDup()
1980 FallThrough2Exit = MBFI->getBlockFreq(NewTop) * in FallThroughGains()
2438 auto EdgeFreq = MBFI->getBlockFreq(Pred) * in rotateLoopWithProfile()
2513 auto TailBBFreq = MBFI->getBlockFreq(TailBB); in rotateLoopWithProfile()
2566 LoopFreq += MBFI->getBlockFreq(LoopPred) * in collectLoopBlockSet()
2916 BlockFrequency Freq = MBFI->getBlockFreq(ChainBB); in alignBlocks()
3208 return MBFI->getBlockFreq(A) > MBFI->getBlockFreq(B); in findDuplicateCandidates()
[all …]
H A 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()
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.cpp905 return MBFI->getBlockFreq(CandidateBB) <= in isProfitableToHoistInto()
906 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
H A DMachineSizeOpts.cpp207 BlockFrequency BlockFreq = MBFIW->getBlockFreq(MBB); in shouldOptimizeForSize()
H A DSelectOptimize.cpp423 BFI->setBlockFreq(EndBlock, BFI->getBlockFreq(StartBlock).getFrequency()); in convertProfitableSIGroups()
738 if (BFI->getBlockFreq(II->getParent()) < BFI->getBlockFreq(I->getParent())) in getExclBackwardsSlice()
H A DSpillPlacement.cpp209 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
/llvm-project-15.0.7/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.h30 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
/llvm-project-15.0.7/llvm/lib/Analysis/
H A 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()
H A DHeatUtils.cpp54 uint64_t freqVal = BFI->getBlockFreq(&BB).getFrequency(); in getMaxFreq()
H A DCFGPrinter.cpp321 uint64_t NodeFreq = BFI->getBlockFreq(Node).getFrequency(); in isNodeHidden()
H A DBlockFrequencyInfoImpl.cpp573 BlockFrequencyInfoImplBase::getBlockFreq(const BlockNode &Node) const { in getBlockFreq() function in BlockFrequencyInfoImplBase
592 return getProfileCountFromFreq(F, getBlockFreq(Node).getFrequency(), in getBlockProfileCount()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A 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()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DRegBankSelect.cpp451 MappingCost Cost(MBFI ? MBFI->getBlockFreq(MI.getParent()) : 1); in computeMapping()
907 return MBFI->getBlockFreq(Instr.getParent()).getFrequency(); in frequency()
915 return MBFI->getBlockFreq(&MBB).getFrequency(); in frequency()
937 return MBFI->getBlockFreq(DstOrSplit).getFrequency(); in frequency()
944 return (MBFI->getBlockFreq(&Src) * MBPI->getEdgeProbability(&Src, DstOrSplit)) in frequency()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A 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;
H A DBlockFrequencyInfo.h65 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
H A DCFGPrinter.h84 return BFI->getBlockFreq(BB).getFrequency(); in getFreq()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DSyntheticCountsPropagation.cpp115 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DCFGMST.h128 (BFI != nullptr ? BFI->getBlockFreq(&BB).getFrequency() : 2); in buildEdges()

12