Home
last modified time | relevance | path

Searched refs:TotalCount (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DIndirectCallPromotionAnalysis.cpp53 uint64_t TotalCount, in isPromotionProfitable() argument
56 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable()
63 const Instruction *Inst, uint64_t TotalCount) { in getProfitablePromotionCandidates() argument
68 uint64_t RemainingCount = TotalCount; in getProfitablePromotionCandidates()
75 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates()
86 const Instruction *I, uint64_t &TotalCount, uint32_t &NumCandidates) { in getPromotionCandidatesForInstruction() argument
88 MaxNumPromotions, TotalCount); in getPromotionCandidatesForInstruction()
93 NumCandidates = getProfitablePromotionCandidates(I, TotalCount); in getPromotionCandidatesForInstruction()
H A DProfileSummaryInfo.cpp78 uint64_t TotalCount;
79 if (Call.extractProfTotalWeight(TotalCount)) in getProfileCount()
80 return TotalCount; in getProfileCount()
88 uint64_t TotalCount; getProfileCount() local
H A DModuleSummaryAnalysis.cpp148 uint64_t TotalCount = 0; in findRefEdges() local
152 *I, IPVK_VTableTarget, MaxNumVTableAnnotations, TotalCount); in findRefEdges()
484 uint64_t TotalCount; in computeFunctionSummary() local
486 ICallAnalysis.getPromotionCandidatesForInstruction(&I, TotalCount, in computeFunctionSummary()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp346 uint64_t TotalCount, uint32_t NumCandidates);
353 uint64_t TotalCount,
370 uint64_t TotalCount);
415 uint64_t TotalCount, uint32_t NumCandidates) { in getPromotionCandidatesForCallSite() argument
429 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite()
430 (void)TotalCount; in getPromotionCandidatesForCallSite()
492 TotalCount -= Count; in getPromotionCandidatesForCallSite()
607 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument
612 createBranchWeights(CB.getContext(), Count, TotalCount - Count)); in promoteIndirectCall()
625 << NV("TotalCount", TotalCount); in promoteIndirectCall()
[all …]
H A DPGOMemOPSizeOpt.cpp225 static bool isProfitable(uint64_t Count, uint64_t TotalCount) { in isProfitable() argument
226 assert(Count <= TotalCount); in isProfitable()
229 if (Count < TotalCount * MemOPPercentThreshold / 100) in isProfitable()
251 uint64_t TotalCount; in perform() local
253 getValueProfDataFromInst(*MO.I, IPVK_MemOPSize, MaxNumVals, TotalCount); in perform()
257 uint64_t ActualCount = TotalCount; in perform()
258 uint64_t SavedTotalCount = TotalCount; in perform()
276 if (TotalCount == 0) in perform()
279 TotalCount = ActualCount; in perform()
285 uint64_t RemainCount = TotalCount; in perform()
[all …]
H A DPGOInstrumentation.cpp1709 uint64_t TotalCount = 0; in annotateOneSelectInst() local
1712 TotalCount = *BI->Count; in annotateOneSelectInst()
1714 SCounts[1] = (TotalCount > SCounts[0] ? TotalCount - SCounts[0] : 0); in annotateOneSelectInst()
2319 uint64_t TotalCount = in setProfMetadata() local
2328 OS << " (total count : " << TotalCount << ")"; in setProfMetadata()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfileSummary.h52 const uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable
72 uint64_t TotalCount, uint64_t MaxCount,
76 : PSK(K), DetailedSummary(DetailedSummary), TotalCount(TotalCount), in PSK()
92 uint64_t getTotalCount() const { return TotalCount; } in getTotalCount()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIndirectCallPromotionAnalysis.h33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount,
39 uint64_t TotalCount);
60 const Instruction *I, uint64_t &TotalCount, uint32_t &NumCandidates);
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DProfileSummaryBuilder.cpp145 APInt Temp(128, TotalCount); in computeDetailedSummary()
151 assert(DesiredCount <= TotalCount); in computeDetailedSummary()
188 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
222 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
H A DSampleProfReader.cpp1466 auto TotalCount = readNumber<uint64_t>(); in readSummary() local
1467 if (std::error_code EC = TotalCount.getError()) in readSummary()
1497 ProfileSummary::PSK_Sample, Entries, *TotalCount, *MaxBlockCount, 0, in readSummary()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMisExpect.cpp103 uint64_t ProfCount, uint64_t TotalCount) { in emitMisexpectDiagnostic() argument
104 double PercentageCorrect = (double)ProfCount / TotalCount; in emitMisexpectDiagnostic()
106 formatv("{0:P} ({1} / {2})", PercentageCorrect, ProfCount, TotalCount); in emitMisexpectDiagnostic()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DProfileSummary.cpp214 uint64_t NumCounts, TotalCount, NumFunctions, MaxFunctionCount, MaxCount, in getFromMD() local
217 TotalCount)) in getFromMD()
245 return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount, in getFromMD()
256 OS << "Total count: " << TotalCount << "\n"; in printSummary()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DProfileCommon.h55 uint64_t TotalCount = 0;
107 TotalCount += Count;
47 uint64_t TotalCount = 0; global() variable
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h106 uint64_t TotalCount, bool AttachProfToDirectCall,
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp542 auto TotalCount = [] (const MachineBasicBlock *B, unsigned &Spare) { in isProfitable() local
554 unsigned TotalIn = TotalCount(FP.TrueB, Spare) + TotalCount(FP.FalseB, Spare); in isProfitable()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleProfile.cpp805 uint64_t TotalCount = 0; in doesHistoryAllowICP() local
807 MaxNumPromotions, TotalCount, true); in doesHistoryAllowICP()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp3010 uint64_t TotalCount = 0; member
3018 : FuncName(FN.begin(), FN.end()), TotalCount(TS), TotalCountPercent(TSP), in HotFuncInfo()
3068 FOS << R.TotalCount << " (" << format("%.2f%%", R.TotalCountPercent) << ")"; in dumpHotFunctionList()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTImporter.cpp4284 unsigned int TotalCount; member
4344 assert(ImportedEquivalentFriends.size() <= CountAndPosition.TotalCount && in VisitFriendDecl()
4346 if (ImportedEquivalentFriends.size() == CountAndPosition.TotalCount) in VisitFriendDecl()