| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | IndirectCallPromotionAnalysis.cpp | 58 uint64_t TotalCount, in isPromotionProfitable() argument 62 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable() 69 const Instruction *Inst, uint64_t TotalCount) { in getProfitablePromotionCandidates() argument 74 uint64_t RemainingCount = TotalCount; in getProfitablePromotionCandidates() 81 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates() 92 const Instruction *I, uint64_t &TotalCount, uint32_t &NumCandidates) { in getPromotionCandidatesForInstruction() argument 94 MaxNumPromotions, TotalCount); in getPromotionCandidatesForInstruction() 99 NumCandidates = getProfitablePromotionCandidates(I, TotalCount); in getPromotionCandidatesForInstruction()
|
| H A D | ProfileSummaryInfo.cpp | 83 uint64_t TotalCount; in getProfileCount() local 84 if (Call.extractProfTotalWeight(TotalCount)) in getProfileCount() 85 return TotalCount; in getProfileCount()
|
| H A D | CtxProfAnalysis.cpp | 392 auto TotalCount = BBInfo.getCount(); in getSelectInstrProfile() local 394 FalseCount = (TotalCount > TrueCount ? TotalCount - TrueCount : 0U); in getSelectInstrProfile()
|
| H A D | ModuleSummaryAnalysis.cpp | 154 uint64_t TotalCount = 0; in findRefEdges() local 158 *I, IPVK_VTableTarget, MaxNumVTableAnnotations, TotalCount); in findRefEdges() 416 uint64_t TotalCount = 0; in computeFunctionSummary() local 497 ICallAnalysis.getPromotionCandidatesForInstruction(&I, TotalCount, in computeFunctionSummary()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | IndirectCallPromotion.cpp | 354 uint64_t TotalCount, uint32_t NumCandidates); 361 uint64_t TotalCount, 427 uint64_t TotalCount, uint32_t NumCandidates) { in getPromotionCandidatesForCallSite() argument 441 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite() 442 (void)TotalCount; in getPromotionCandidatesForCallSite() 504 TotalCount -= Count; in getPromotionCandidatesForCallSite() 619 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument 624 createBranchWeights(CB.getContext(), Count, TotalCount - Count)); in promoteIndirectCall() 637 << NV("TotalCount", TotalCount); in promoteIndirectCall() 645 uint64_t TotalCount, ArrayRef<InstrProfValueData> ICallProfDataRef, in tryToPromoteWithFuncCmp() argument [all …]
|
| H A D | PGOMemOPSizeOpt.cpp | 225 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 D | MemProfUse.cpp | 344 uint64_t TotalCount = 0; in addVPMetadata() local 355 TotalCount += VD.Count; in addVPMetadata() 359 annotateValueSite(M, I, VDs, TotalCount, IPVK_IndirectCallTarget, in addVPMetadata()
|
| H A D | PGOInstrumentation.cpp | 1791 uint64_t TotalCount = 0; in annotateOneSelectInst() local 1794 TotalCount = *BI->Count; in annotateOneSelectInst() 1797 if (TotalCount < SCounts[0]) in annotateOneSelectInst() 1801 SCounts[1] = (TotalCount > SCounts[0] ? TotalCount - SCounts[0] : 0); in annotateOneSelectInst() 2434 uint64_t TotalCount = in setProfMetadata() local 2443 OS << " (total count : " << TotalCount << ")"; in setProfMetadata()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ProfileSummary.h | 53 const uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable 73 uint64_t TotalCount, uint64_t MaxCount, 77 : PSK(K), DetailedSummary(DetailedSummary), TotalCount(TotalCount), in PSK() 93 uint64_t getTotalCount() const { return TotalCount; } in getTotalCount()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | IndirectCallPromotionAnalysis.h | 33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount, 39 uint64_t TotalCount); 59 const Instruction *I, uint64_t &TotalCount, uint32_t &NumCandidates);
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | ProfileSummaryBuilder.cpp | 154 APInt Temp(128, TotalCount); in computeDetailedSummary() 160 assert(DesiredCount <= TotalCount); in computeDetailedSummary() 197 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary() 231 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
|
| H A D | SampleProfReader.cpp | 1550 auto TotalCount = readNumber<uint64_t>(); in readSummary() local 1551 if (std::error_code EC = TotalCount.getError()) in readSummary() 1581 ProfileSummary::PSK_Sample, Entries, *TotalCount, *MaxBlockCount, 0, in readSummary()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | MisExpect.cpp | 101 uint64_t ProfCount, uint64_t TotalCount) { in emitMisexpectDiagnostic() argument 102 double PercentageCorrect = (double)ProfCount / TotalCount; in emitMisexpectDiagnostic() 104 formatv("{0:P} ({1} / {2})", PercentageCorrect, ProfCount, TotalCount); in emitMisexpectDiagnostic()
|
| H A D | CallPromotionUtils.cpp | 635 uint64_t TotalCount = 0; in promoteCallWithIfThenElse() local 637 TotalCount += V.getEntrycount(); in promoteCallWithIfThenElse() 652 assert(TotalCount >= DirectCount); in promoteCallWithIfThenElse() 653 uint64_t IndirectCount = TotalCount - DirectCount; in promoteCallWithIfThenElse()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ProfileSummary.cpp | 214 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 D | ProfileCommon.h | 56 uint64_t TotalCount = 0; variable 108 TotalCount += Count; in addCount()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
| H A D | MemProfContextDisambiguation.h | 50 uint64_t TotalCount; member
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | Instrumentation.h | 111 uint64_t Count, uint64_t TotalCount,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonEarlyIfConv.cpp | 535 auto TotalCount = [] (const MachineBasicBlock *B, unsigned &Spare) { in isProfitable() local 547 unsigned TotalIn = TotalCount(FP.TrueB, Spare) + TotalCount(FP.FalseB, Spare); in isProfitable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MemProfContextDisambiguation.cpp | 5472 uint64_t TotalCount; in recordICPInfo() local 5474 ICallAnalysis->getPromotionCandidatesForInstruction(CB, TotalCount, in recordICPInfo() 5510 TotalCount, CallsiteInfoStartIndex}); in recordICPInfo() 5528 auto TotalCount = Info.TotalCount; in performICP() local 5569 << " with count of " << ore::NV("TotalCount", TotalCount) in performICP() 5590 TotalCount, isSamplePGO, &ORE); in performICP() 5620 TotalCount -= Candidate.Count; in performICP() 5634 if (TotalCount != 0) in performICP() 5637 TotalCount, IPVK_IndirectCallTarget, Info.NumCandidates); in performICP()
|
| H A D | SampleProfile.cpp | 807 uint64_t TotalCount = 0; in doesHistoryAllowICP() local 809 MaxNumPromotions, TotalCount, true); in doesHistoryAllowICP()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/ |
| H A D | llvm-profdata.cpp | 3103 uint64_t TotalCount = 0; member 3111 : FuncName(FN.begin(), FN.end()), TotalCount(TS), TotalCountPercent(TSP), in HotFuncInfo() 3161 FOS << R.TotalCount << " (" << format("%.2f%%", R.TotalCountPercent) << ")"; in dumpHotFunctionList()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTImporter.cpp | 4553 unsigned int TotalCount; member 4614 assert(ImportedEquivalentFriends.size() <= CountAndPosition.TotalCount && in VisitFriendDecl() 4616 if (ImportedEquivalentFriends.size() == CountAndPosition.TotalCount) in VisitFriendDecl()
|