Home
last modified time | relevance | path

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

1234567

/external/llvm/lib/Analysis/
DIndirectCallPromotionAnalysis.cpp62 uint64_t TotalCount) { in isPromotionProfitable() argument
66 unsigned Percentage = (Count * 100) / TotalCount; in isPromotionProfitable()
74 const Instruction *Inst, uint32_t NumVals, uint64_t TotalCount) { in getProfitablePromotionCandidates() argument
83 assert(Count <= TotalCount); in getProfitablePromotionCandidates()
87 if (!isPromotionProfitable(Count, TotalCount)) { in getProfitablePromotionCandidates()
91 TotalCount -= Count; in getProfitablePromotionCandidates()
98 const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount, in getPromotionCandidatesForInstruction() argument
102 ValueDataArray.get(), NumVals, TotalCount); in getPromotionCandidatesForInstruction()
107 NumCandidates = getProfitablePromotionCandidates(I, NumVals, TotalCount); in getPromotionCandidatesForInstruction()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp197 uint64_t TotalCount, uint32_t NumCandidates);
203 uint64_t &TotalCount);
222 uint64_t TotalCount, uint32_t NumCandidates) { in getPromotionCandidatesForCallSite() argument
236 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite()
298 TotalCount -= Count; in getPromotionCandidatesForCallSite()
304 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument
308 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall()
332 << NV("TotalCount", TotalCount); in promoteIndirectCall()
340 uint64_t &TotalCount) { in tryToPromote() argument
345 pgo::promoteIndirectCall(CB, C.TargetFunction, Count, TotalCount, SamplePGO, in tryToPromote()
[all …]
DPGOMemOPSizeOpt.cpp275 static bool isProfitable(uint64_t Count, uint64_t TotalCount) { in isProfitable() argument
276 assert(Count <= TotalCount); in isProfitable()
279 if (Count < TotalCount * MemOPPercentThreshold / 100) in isProfitable()
301 uint64_t TotalCount; in perform() local
303 ValueDataArray.get(), NumVals, TotalCount)) in perform()
306 uint64_t ActualCount = TotalCount; in perform()
307 uint64_t SavedTotalCount = TotalCount; in perform()
326 if (TotalCount == 0) in perform()
329 TotalCount = ActualCount; in perform()
335 uint64_t RemainCount = TotalCount; in perform()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp198 uint64_t TotalCount, uint32_t NumCandidates);
204 uint64_t &TotalCount);
223 uint64_t TotalCount, uint32_t NumCandidates) { in getPromotionCandidatesForCallSite() argument
237 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite()
292 TotalCount -= Count; in getPromotionCandidatesForCallSite()
299 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument
303 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall()
327 << NV("TotalCount", TotalCount); in promoteIndirectCall()
335 uint64_t &TotalCount) { in tryToPromote() argument
340 pgo::promoteIndirectCall(Inst, C.TargetFunction, Count, TotalCount, in tryToPromote()
[all …]
DPGOMemOPSizeOpt.cpp214 static bool isProfitable(uint64_t Count, uint64_t TotalCount) { in isProfitable() argument
215 assert(Count <= TotalCount); in isProfitable()
218 if (Count < TotalCount * MemOPPercentThreshold / 100) in isProfitable()
238 uint64_t TotalCount; in perform() local
240 ValueDataArray.get(), NumVals, TotalCount)) in perform()
243 uint64_t ActualCount = TotalCount; in perform()
244 uint64_t SavedTotalCount = TotalCount; in perform()
263 if (TotalCount == 0) in perform()
266 TotalCount = ActualCount; in perform()
272 uint64_t RemainCount = TotalCount; in perform()
[all …]
/external/libchrome/base/metrics/
Dpersistent_sample_map_unittest.cc44 EXPECT_EQ(100, samples.TotalCount()); in TEST()
45 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
61 EXPECT_EQ(100, samples.TotalCount()); in TEST()
62 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
88 EXPECT_EQ(900, samples1.TotalCount()); in TEST()
89 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
97 EXPECT_EQ(300, samples1.TotalCount()); in TEST()
98 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
114 EXPECT_EQ(101, samples1.TotalCount()); in TEST()
115 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
[all …]
Dsample_map_unittest.cc25 EXPECT_EQ(100, samples.TotalCount()); in TEST()
26 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
39 EXPECT_EQ(100, samples.TotalCount()); in TEST()
40 EXPECT_EQ(samples.redundant_count(), samples.TotalCount()); in TEST()
61 EXPECT_EQ(900, samples1.TotalCount()); in TEST()
62 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
70 EXPECT_EQ(300, samples1.TotalCount()); in TEST()
71 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST()
Dsample_vector_unittest.cc49 EXPECT_EQ(samples.TotalCount(), samples.redundant_count()); in TEST_F()
56 EXPECT_EQ(samples.TotalCount(), samples.redundant_count()); in TEST_F()
76 EXPECT_EQ(samples.TotalCount(), samples.redundant_count()); in TEST_F()
83 EXPECT_EQ(samples.TotalCount(), samples.redundant_count()); in TEST_F()
100 EXPECT_EQ(300, samples1.TotalCount()); in TEST_F()
101 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST_F()
108 EXPECT_EQ(600, samples2.TotalCount()); in TEST_F()
109 EXPECT_EQ(samples2.redundant_count(), samples2.TotalCount()); in TEST_F()
117 EXPECT_EQ(900, samples1.TotalCount()); in TEST_F()
118 EXPECT_EQ(samples1.redundant_count(), samples1.TotalCount()); in TEST_F()
[all …]
Dsparse_histogram_unittest.cc96 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
101 EXPECT_EQ(1, snapshot1->TotalCount()); in TEST_P()
107 EXPECT_EQ(3, snapshot2->TotalCount()); in TEST_P()
115 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
120 EXPECT_EQ(15, snapshot1->TotalCount()); in TEST_P()
126 EXPECT_EQ(55, snapshot2->TotalCount()); in TEST_P()
134 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
139 EXPECT_EQ(15, snapshot1->TotalCount()); in TEST_P()
145 EXPECT_EQ(55, snapshot2->TotalCount()); in TEST_P()
156 EXPECT_EQ(0, snapshot->TotalCount()); in TEST_P()
[all …]
Dhistogram_unittest.cc166 EXPECT_EQ(2, samples->TotalCount()); in TEST_P()
180 EXPECT_EQ(3, samples->TotalCount()); in TEST_P()
184 EXPECT_EQ(samples->TotalCount(), samples->redundant_count()); in TEST_P()
187 EXPECT_EQ(0, samples->TotalCount()); in TEST_P()
192 EXPECT_EQ(2, samples->TotalCount()); in TEST_P()
196 EXPECT_EQ(0, samples->TotalCount()); in TEST_P()
209 EXPECT_EQ(3, samples->TotalCount()); in TEST_P()
213 EXPECT_EQ(samples->TotalCount(), samples->redundant_count()); in TEST_P()
219 EXPECT_EQ(2, samples->TotalCount()); in TEST_P()
222 EXPECT_EQ(samples->TotalCount(), samples->redundant_count()); in TEST_P()
[all …]
Dpersistent_histogram_allocator_unittest.cc284 EXPECT_EQ(found->SnapshotSamples()->TotalCount(), snapshot->TotalCount()); in TEST_F()
293 EXPECT_EQ(found->SnapshotSamples()->TotalCount(), snapshot->TotalCount()); in TEST_F()
322 EXPECT_EQ(found->SnapshotSamples()->TotalCount(), snapshot->TotalCount()); in TEST_F()
330 EXPECT_EQ(found->SnapshotSamples()->TotalCount(), snapshot->TotalCount()); in TEST_F()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DIndirectCallPromotionAnalysis.cpp61 uint64_t TotalCount, in isPromotionProfitable() argument
64 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable()
71 const Instruction *Inst, uint32_t NumVals, uint64_t TotalCount) { in getProfitablePromotionCandidates() argument
78 uint64_t RemainingCount = TotalCount; in getProfitablePromotionCandidates()
85 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates()
96 const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount, in getPromotionCandidatesForInstruction() argument
100 ValueDataArray.get(), NumVals, TotalCount); in getPromotionCandidatesForInstruction()
105 NumCandidates = getProfitablePromotionCandidates(I, NumVals, TotalCount); in getPromotionCandidatesForInstruction()
/external/llvm-project/llvm/lib/Analysis/
DIndirectCallPromotionAnalysis.cpp58 uint64_t TotalCount, in isPromotionProfitable() argument
61 Count * 100 >= ICPTotalPercentThreshold * TotalCount; in isPromotionProfitable()
68 const Instruction *Inst, uint32_t NumVals, uint64_t TotalCount) { in getProfitablePromotionCandidates() argument
75 uint64_t RemainingCount = TotalCount; in getProfitablePromotionCandidates()
82 if (!isPromotionProfitable(Count, TotalCount, RemainingCount)) { in getProfitablePromotionCandidates()
93 const Instruction *I, uint32_t &NumVals, uint64_t &TotalCount, in getPromotionCandidatesForInstruction() argument
97 ValueDataArray.get(), NumVals, TotalCount); in getPromotionCandidatesForInstruction()
102 NumCandidates = getProfitablePromotionCandidates(I, NumVals, TotalCount); in getPromotionCandidatesForInstruction()
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp166 uint64_t TotalCount, uint32_t NumCandidates);
179 uint64_t TotalCount);
185 uint64_t &TotalCount);
259 uint64_t TotalCount, uint32_t NumCandidates) { in getPromotionCandidatesForCallSite() argument
273 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite()
304 TotalCount -= Count; in getPromotionCandidatesForCallSite()
312 uint64_t Count, uint64_t TotalCount, in createIfThenElse() argument
327 uint64_t ElseCount = TotalCount - Count; in createIfThenElse()
528 uint64_t Count, uint64_t TotalCount) { in promote() argument
537 createIfThenElse(Inst, DirectCallee, Count, TotalCount, &DirectCallBB, in promote()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DProfileSummary.h50 uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable
59 uint64_t TotalCount, uint64_t MaxCount, in ProfileSummary() argument
63 TotalCount(TotalCount), MaxCount(MaxCount), in ProfileSummary()
76 uint64_t getTotalCount() { return TotalCount; } in getTotalCount()
/external/llvm/include/llvm/IR/
DProfileSummary.h55 uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable
63 uint64_t TotalCount, uint64_t MaxCount, in ProfileSummary() argument
67 TotalCount(TotalCount), MaxCount(MaxCount), in ProfileSummary()
79 uint64_t getTotalCount() { return TotalCount; } in getTotalCount()
/external/llvm-project/llvm/include/llvm/IR/
DProfileSummary.h52 uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable
72 uint64_t TotalCount, uint64_t MaxCount,
77 TotalCount(TotalCount), MaxCount(MaxCount), in PSK()
92 uint64_t getTotalCount() { return TotalCount; } in getTotalCount()
/external/libchrome/base/test/metrics/
Dhistogram_tester.cc137 if (new_samples->TotalCount()) { in GetTotalCountsForPrefix()
138 result[histogram->histogram_name()] = new_samples->TotalCount(); in GetTotalCountsForPrefix()
178 if (named_samples->TotalCount()) { in GetAllHistogramsRecorded()
179 auto current_count = histogram->SnapshotSamples()->TotalCount(); in GetAllHistogramsRecorded()
181 histogram->histogram_name(), named_samples->TotalCount()); in GetAllHistogramsRecorded()
182 if (current_count != named_samples->TotalCount()) { in GetAllHistogramsRecorded()
212 int actual_count = samples.TotalCount(); in CheckTotalCount()
215 actual_count -= histogram_data->second->TotalCount(); in CheckTotalCount()
/external/llvm/include/llvm/Analysis/
DIndirectCallPromotionAnalysis.h33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount);
39 uint64_t TotalCount);
61 uint64_t &TotalCount,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DIndirectCallPromotionAnalysis.h33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount,
40 uint64_t TotalCount);
62 uint64_t &TotalCount,
/external/llvm-project/llvm/include/llvm/Analysis/
DIndirectCallPromotionAnalysis.h33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount,
40 uint64_t TotalCount);
62 uint64_t &TotalCount,
/external/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp71 APInt Temp(128, TotalCount); in computeDetailedSummary()
77 assert(DesiredCount <= TotalCount); in computeDetailedSummary()
94 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
101 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp74 APInt Temp(128, TotalCount); in computeDetailedSummary()
80 assert(DesiredCount <= TotalCount); in computeDetailedSummary()
97 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
104 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
/external/llvm-project/llvm/lib/ProfileData/
DProfileSummaryBuilder.cpp87 APInt Temp(128, TotalCount); in computeDetailedSummary()
93 assert(DesiredCount <= TotalCount); in computeDetailedSummary()
110 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary()
117 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
/external/llvm/include/llvm/ProfileData/
DProfileCommon.h57 : DetailedSummaryCutoffs(std::move(Cutoffs)), TotalCount(0), MaxCount(0), in ProfileSummaryBuilder()
62 uint64_t TotalCount, MaxCount, MaxFunctionCount; variable
93 TotalCount += Count; in addCount()

1234567