| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | BlockFrequencyInfoTest.cpp | 69 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 D | LoopSink.cpp | 84 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 D | ConstantHoisting.cpp | 283 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 D | MBFIWrapper.cpp | 20 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 D | MachineBlockPlacement.cpp | 440 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 D | ShrinkWrap.cpp | 547 << 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 D | MachineBlockFrequencyInfo.cpp | 230 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 D | MachineCSE.cpp | 905 return MBFI->getBlockFreq(CandidateBB) <= in isProfitableToHoistInto() 906 MBFI->getBlockFreq(MBB) + MBFI->getBlockFreq(MBB1); in isProfitableToHoistInto()
|
| H A D | MachineSizeOpts.cpp | 207 BlockFrequency BlockFreq = MBFIW->getBlockFreq(MBB); in shouldOptimizeForSize()
|
| H A D | SelectOptimize.cpp | 423 BFI->setBlockFreq(EndBlock, BFI->getBlockFreq(StartBlock).getFrequency()); in convertProfitableSIGroups() 738 if (BFI->getBlockFreq(II->getParent()) < BFI->getBlockFreq(I->getParent())) in getExclBackwardsSlice()
|
| H A D | SpillPlacement.cpp | 209 BlockFrequencies[Num] = MBFI->getBlockFreq(&I); in runOnMachineFunction()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineBlockFrequencyInfo.h | 64 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const; 69 return getBlockFreq(MBB).getFrequency() * (1.0f / getEntryFreq()); in getBlockFreqRelativeToEntryBlock()
|
| H A D | MBFIWrapper.h | 30 BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | BlockFrequencyInfo.cpp | 203 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 D | HeatUtils.cpp | 54 uint64_t freqVal = BFI->getBlockFreq(&BB).getFrequency(); in getMaxFreq()
|
| H A D | CFGPrinter.cpp | 321 uint64_t NodeFreq = BFI->getBlockFreq(Node).getFrequency(); in isNodeHidden()
|
| H A D | BlockFrequencyInfoImpl.cpp | 573 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 D | BreakCriticalEdges.cpp | 390 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 D | RegBankSelect.cpp | 451 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 D | BlockFrequencyInfoImpl.h | 524 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 D | BlockFrequencyInfo.h | 65 BlockFrequency getBlockFreq(const BasicBlock *BB) const;
|
| H A D | CFGPrinter.h | 84 return BFI->getBlockFreq(BB).getFrequency(); in getFreq()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | SpeculateAnalyses.cpp | 105 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 D | SyntheticCountsPropagation.cpp | 115 Scaled64 BBCount(BFI.getBlockFreq(CSBB).getFrequency(), 0); in run()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | CFGMST.h | 128 (BFI != nullptr ? BFI->getBlockFreq(&BB).getFrequency() : 2); in buildEdges()
|