Home
last modified time | relevance | path

Searched refs:getKnownExecutionCount (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/bolt/lib/Passes/
H A DFrameOptimizer.cpp112 FreqRedundantLoads += BB.getKnownExecutionCount(); in removeUnnecessaryLoads()
125 FreqLoadsChangedToReg += BB.getKnownExecutionCount(); in removeUnnecessaryLoads()
130 FreqLoadsDeleted += BB.getKnownExecutionCount(); in removeUnnecessaryLoads()
142 FreqLoadsChangedToImm += BB.getKnownExecutionCount(); in removeUnnecessaryLoads()
205 FreqRedundantStores += BB.getKnownExecutionCount(); in removeUnusedStores()
258 if (I.second.getKnownExecutionCount() < BC.getHotThreshold()) in runOnFunctions()
263 << I.second.getKnownExecutionCount() in runOnFunctions()
282 if (I.second.getKnownExecutionCount() == 0) in runOnFunctions()
340 Top10Funcs.begin(), Top10Funcs.end(), BF.getKnownExecutionCount(), in performShrinkWrapping()
346 std::make_pair<>(BF.getKnownExecutionCount(), &BF)); in performShrinkWrapping()
H A DInliner.cpp280 if (uint64_t CalleeExecCount = Callee.getKnownExecutionCount()) in inlineCall()
282 (double)FirstInlinedBB->getKnownExecutionCount() / CalleeExecCount; in inlineCall()
286 const uint64_t FirstInlinedBBCount = FirstInlinedBB->getKnownExecutionCount(); in inlineCall()
296 InlinedBB->setExecutionCount(BBI->getKnownExecutionCount()); in inlineCall()
377 InlinedBB->setExecutionCount(InlinedBB->getKnownExecutionCount() * in inlineCall()
402 return BB1->getKnownExecutionCount() > BB2->getKnownExecutionCount(); in inlineCallsInFunction()
463 << ". Count: " << BB->getKnownExecutionCount() in inlineCallsInFunction()
477 TargetFunction->adjustExecutionCount(BB->getKnownExecutionCount()); in inlineCallsInFunction()
524 return B->getKnownExecutionCount() < A->getKnownExecutionCount(); in runOnFunctions()
H A DAligner.cpp114 std::max<uint64_t>(1, Function.getKnownExecutionCount()); in alignBlocks()
117 uint64_t Count = BB->getKnownExecutionCount(); in alignBlocks()
148 AlignedBlocksCount += BB->getKnownExecutionCount(); in alignBlocks()
H A DBinaryPasses.cpp381 if (BF.getKnownExecutionCount() < opts::ExecutionCountThreshold) in shouldOptimize()
892 else if (CTCTakenFreq > BB->getKnownExecutionCount()) in fixTailCalls()
897 LocalCTCExecCount += PredBB->getKnownExecutionCount(); in fixTailCalls()
1550 std::max<uint64_t>(BF.getKnownExecutionCount(), 1); in runOnFunctions()
1553 if (!HotSeen && BB->getKnownExecutionCount() > HotThreshold) { in runOnFunctions()
1557 if (HotSeen && BB->getKnownExecutionCount() == 0) { in runOnFunctions()
1568 B->getKnownExecutionCount() / B->getSize(); in runOnFunctions()
1611 NumPrefixesRemoved += BB.getKnownExecutionCount(); in runOnFunctions()
1658 NumInlinedDyno += BB.getKnownExecutionCount(); in runOnFunctions()
1779 if (CurBB->getKnownExecutionCount() > 0) in runOnFunctions()
[all …]
H A DIdenticalCodeFolding.cpp507 CallsSavedEstimate += std::min(ChildBF->getKnownExecutionCount(), in runOnFunctions()
508 ParentBF->getKnownExecutionCount()); in runOnFunctions()
566 if (BF->getKnownExecutionCount()) in runOnFunctions()
567 dbgs() << " (executed " << BF->getKnownExecutionCount() << " times)"; in runOnFunctions()
H A DBinaryFunctionCallGraph.cpp116 return Cg.addNode(Function, Size, Function->getKnownExecutionCount()); in buildCallGraph()
230 BBIncludedInFunctionSize = BB->getKnownExecutionCount() != 0; in buildCallGraph()
H A DPLTCall.cpp61 if (opts::PLT == OT_HOT && !BB.getKnownExecutionCount()) in runOnFunctions()
H A DRegReAssign.cpp55 DynBytesSaved -= BB.getKnownExecutionCount(); in swap()
62 DynBytesSaved += BB.getKnownExecutionCount(); in swap()
195 RegScore[RegEC] += BB.getKnownExecutionCount(); in rankRegisters()
H A DCacheMetrics.cpp128 uint64_t Count = BB->getKnownExecutionCount(); in extractFunctionCalls()
175 Samples = std::max(Samples, (double)BF->getKnownExecutionCount()); in expectedCacheHitRatio()
H A DJTFootprintReduction.cpp53 AllJTs[JumpTable] += BB.getKnownExecutionCount(); in checkOpportunities()
265 if (Function.getKnownExecutionCount() == 0) in runOnFunctions()
H A DAllocCombiner.cpp104 DynamicCountCombined += BB.getKnownExecutionCount(); in combineAdjustments()
H A DTailDuplication.cpp276 if (BB.getKnownExecutionCount() == 0) in moderateDuplicate()
299 if (BB.getKnownExecutionCount() == 0) in aggressiveDuplicate()
585 AllDynamicCount += BB->getKnownExecutionCount(); in runOnFunction()
H A DIndirectCallPromotion.cpp169 if (BB.getKnownExecutionCount() == 0 || in verifyProfile()
170 SuccBB->getKnownExecutionCount() == 0) { in verifyProfile()
819 uint64_t TotalCount = IndCallBlock.getKnownExecutionCount(); in fixCFG()
948 if (BB.getKnownExecutionCount() < opts::ExecutionCountThreshold) in canPromoteCallsite()
1255 TotalCalls += BB->getKnownExecutionCount(); in runOnFunctions()
H A DCMOVConversion.cpp189 uint64_t BBExecCount = BB->getKnownExecutionCount(); in runOnFunction()
H A DShrinkWrapping.cpp109 SavingCost[FIE->RegOrImm] += InsnToBB[&Inst]->getKnownExecutionCount(); in analyzeSaves()
846 const uint64_t CountA = BBA->getKnownExecutionCount(); in computeSaveLocations()
847 const uint64_t CountB = BBB->getKnownExecutionCount(); in computeSaveLocations()
853 const uint64_t Count = BB->getKnownExecutionCount(); in computeSaveLocations()
909 << " count << " << BF.getKnownExecutionCount() << "\n"; in isBestSavePosCold()
1994 if (HotOnly && (BF.getKnownExecutionCount() < BC.getHotThreshold())) in perform()
H A DAsmDump.cpp187 if (uint64_t EntryExecCount = BF.getKnownExecutionCount()) in dumpFunction()
H A DSplitFunctions.cpp160 if (BF.getKnownExecutionCount() < opts::ExecutionCountThreshold) in shouldOptimize()
H A DReorderData.cpp269 BDtoFuncCount[BD->getAtomicRoot()] += BF.getKnownExecutionCount(); in sortedByFunc()
/llvm-project-15.0.7/bolt/lib/Profile/
H A DYAMLProfileWriter.cpp35 YamlBF.ExecCount = BF.getKnownExecutionCount(); in convert()
43 YamlBB.EventCount = BB->getKnownExecutionCount(); in convert()
49 YamlBB.ExecCount = BB->getKnownExecutionCount(); in convert()
114 !(BB->isLandingPad() && BB->getKnownExecutionCount() != 0)) { in convert()
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinaryFunctionProfile.cpp104 if (BB->getKnownExecutionCount() == 0) in postProcessProfile()
115 BI.Count = BB->getKnownExecutionCount(); in postProcessProfile()
116 FTSuccessor->setExecutionCount(FTSuccessor->getKnownExecutionCount() + in postProcessProfile()
203 BF.setExecutionCount(BF.getKnownExecutionCount() + getExecutionCount()); in mergeProfileDataInto()
217 BBMerge->setExecutionCount(BBMerge->getKnownExecutionCount() + in mergeProfileDataInto()
H A DDynoStats.cpp179 const uint64_t BBExecutionCount = BB->getKnownExecutionCount(); in getDynoStats()
187 Stats[DynoStats::VENEER_CALLS_AARCH64] += BF.getKnownExecutionCount(); in getDynoStats()
H A DBinaryBasicBlock.cpp393 setExecutionCount(adjustedCount(getKnownExecutionCount())); in adjustExecutionCount()
H A DBinaryFunction.cpp563 if (BB->succ_size() > 2 && BB->getKnownExecutionCount()) { in print()
2211 << BB.getKnownExecutionCount() << " times.\n"); in calculateMacroOpFusionStats()
2213 BC.MissedMacroFusionExecCount += BB.getKnownExecutionCount(); in calculateMacroOpFusionStats()
3032 BB->getKnownExecutionCount(), BB->getOffset(), getIndex(BB), in dumpGraph()
3944 if (getKnownExecutionCount() == 0 || Count == 0) in adjustExecutionCount()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DBoltDiff.cpp180 return static_cast<double>(BB.getKnownExecutionCount()) / in getNormalizedScore()
182 return static_cast<double>(BB.getKnownExecutionCount()) / in getNormalizedScore()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinaryFunction.h1847 uint64_t getKnownExecutionCount() const { in getKnownExecutionCount() function
2241 if (BB.getKnownExecutionCount() != 0)

12