Searched refs:TotalCount (Results 1 - 16 of 16) sorted by relevance

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIndirectCallPromotionAnalysis.h30 // TotalCount is the total call count for the indirect-call callsite.
31 // RemainingCount is the TotalCount minus promoted-direct-call count.
33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount,
40 uint64_t TotalCount);
53 /// The \p NumVals, \p TotalCount and \p NumCandidates
62 uint64_t &TotalCount,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DIndirectCallPromotionAnalysis.cpp61 uint64_t TotalCount,
64 Count * 100 >= ICPTotalPercentThreshold * TotalCount;
71 const Instruction *Inst, uint32_t NumVals, uint64_t TotalCount) {
78 uint64_t RemainingCount = TotalCount;
85 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) {
96 const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount,
100 ValueDataArray.get(), NumVals, TotalCount);
105 NumCandidates = getProfitablePromotionCandidates(I, NumVals, TotalCount);
60 isPromotionProfitable(uint64_t Count, uint64_t TotalCount, uint64_t RemainingCount) argument
70 getProfitablePromotionCandidates( const Instruction *Inst, uint32_t NumVals, uint64_t TotalCount) argument
95 getPromotionCandidatesForInstruction( const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount, uint32_t &NumCandidates) argument
H A DProfileSummaryInfo.cpp117 uint64_t TotalCount; local
118 if (Inst->extractProfTotalWeight(TotalCount))
119 return TotalCount;
H A DModuleSummaryAnalysis.cpp385 uint64_t TotalCount; local
388 &I, NumVals, TotalCount, NumCandidates);
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DProfileSummary.h50 uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; member in class:llvm::ProfileSummary
59 uint64_t TotalCount, uint64_t MaxCount,
63 TotalCount(TotalCount), MaxCount(MaxCount),
76 uint64_t getTotalCount() { return TotalCount; }
58 ProfileSummary(Kind K, SummaryEntryVector DetailedSummary, uint64_t TotalCount, uint64_t MaxCount, uint64_t MaxInternalCount, uint64_t MaxFunctionCount, uint32_t NumCounts, uint32_t NumFunctions) argument
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp194 // TotalCount is the total profiled count of call executions, and
198 uint64_t TotalCount, uint32_t NumCandidates);
204 uint64_t &TotalCount);
223 uint64_t TotalCount, uint32_t NumCandidates) {
237 assert(Count <= TotalCount);
292 TotalCount -= Count;
299 uint64_t Count, uint64_t TotalCount,
303 uint64_t ElseCount = TotalCount - Count;
327 << NV("TotalCount", TotalCount);
221 getPromotionCandidatesForCallSite( Instruction *Inst, const ArrayRef<InstrProfValueData> &ValueDataRef, uint64_t TotalCount, uint32_t NumCandidates) argument
297 promoteIndirectCall(Instruction *Inst, Function *DirectCallee, uint64_t Count, uint64_t TotalCount, bool AttachProfToDirectCall, OptimizationRemarkEmitter *ORE) argument
333 tryToPromote( Instruction *Inst, const std::vector<PromotionCandidate> &Candidates, uint64_t &TotalCount) argument
357 uint64_t TotalCount; local
[all...]
H A DPGOMemOPSizeOpt.cpp214 static bool isProfitable(uint64_t Count, uint64_t TotalCount) { argument
215 assert(Count <= TotalCount);
218 if (Count < TotalCount * MemOPPercentThreshold / 100)
238 uint64_t TotalCount; local
240 ValueDataArray.get(), NumVals, TotalCount))
243 uint64_t ActualCount = TotalCount;
244 uint64_t SavedTotalCount = TotalCount;
263 if (TotalCount == 0)
266 TotalCount = ActualCount;
272 uint64_t RemainCount = TotalCount;
320 << TotalCount << ")\\n"); local
[all...]
H A DPGOInstrumentation.cpp1369 uint64_t TotalCount = 0;
1372 TotalCount = BI->CountValue;
1374 SCounts[1] = (TotalCount > SCounts[0] ? TotalCount - SCounts[0] : 0);
1723 uint64_t TotalCount = local
1732 OS << " (total count : " << TotalCount << ")"; local
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ProfileData/
H A DProfileSummaryBuilder.cpp74 APInt Temp(128, TotalCount);
80 assert(DesiredCount <= TotalCount);
97 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0,
104 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount,
H A DSampleProfReader.cpp911 auto TotalCount = readNumber<uint64_t>(); local
912 if (std::error_code EC = TotalCount.getError())
942 ProfileSummary::PSK_Sample, Entries, *TotalCount, *MaxBlockCount, 0,
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DProfileCommon.h49 uint64_t TotalCount = 0; member in class:llvm::ProfileSummaryBuilder
93 TotalCount += Count;
H A DInstrProf.h889 uint64_t &TotalCount = (TotalC == nullptr ? Dummy : *TotalC); local
892 TotalCount = 0;
897 TotalCount = getValueForSite(VD.get(), ValueKind, Site);
906 uint64_t TotalCount = 0; local
910 TotalCount = SaturatingAdd(TotalCount, V.Count);
913 return TotalCount;
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMisExpect.cpp75 uint64_t ProfCount, uint64_t TotalCount) {
76 double PercentageCorrect = (double)ProfCount / TotalCount;
78 formatv("{0:P} ({1} / {2})", PercentageCorrect, ProfCount, TotalCount);
74 emitMisexpectDiagnostic(Instruction *I, LLVMContext &Ctx, uint64_t ProfCount, uint64_t TotalCount) argument
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
H A DProfileSummary.cpp72 getKeyValMD(Context, "TotalCount", getTotalCount()),
161 uint64_t NumCounts, TotalCount, NumFunctions, MaxFunctionCount, MaxCount,
163 if (!getVal(dyn_cast<MDTuple>(Tuple->getOperand(1)), "TotalCount",
164 TotalCount))
183 return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount,
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/
H A DInstrumentation.h116 // TotalCount is the profile count value that the instruction executes.
123 uint64_t TotalCount,
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp542 auto TotalCount = [] (const MachineBasicBlock *B, unsigned &Spare) { local
554 unsigned TotalIn = TotalCount(FP.TrueB, Spare) + TotalCount(FP.FalseB, Spare);

Completed in 283 milliseconds