/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/ |
D | IndirectCallPromotion.cpp | 198 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() 291 TotalCount -= Count; in getPromotionCandidatesForCallSite() 298 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument 302 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall() 326 << NV("TotalCount", TotalCount); in promoteIndirectCall() 334 uint64_t &TotalCount) { in tryToPromote() argument 339 pgo::promoteIndirectCall(Inst, C.TargetFunction, Count, TotalCount, in tryToPromote() [all …]
|
D | PGOMemOPSizeOpt.cpp | 214 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/llvm/lib/Analysis/ |
D | IndirectCallPromotionAnalysis.cpp | 62 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/libchrome/base/metrics/ |
D | persistent_sample_map_unittest.cc | 44 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 …]
|
D | sample_vector_unittest.cc | 49 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 …]
|
D | sample_map_unittest.cc | 25 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()
|
D | sparse_histogram_unittest.cc | 96 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 …]
|
D | histogram_unittest.cc | 166 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 …]
|
D | persistent_histogram_allocator_unittest.cc | 284 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-7.0/llvm/lib/Analysis/ |
D | IndirectCallPromotionAnalysis.cpp | 61 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()
|
D | ProfileSummaryInfo.cpp | 95 uint64_t TotalCount; in getProfileCount() local 96 if (Inst->extractProfTotalWeight(TotalCount)) in getProfileCount() 97 return TotalCount; in getProfileCount()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | IndirectCallPromotion.cpp | 166 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-7.0/llvm/include/llvm/IR/ |
D | ProfileSummary.h | 52 uint64_t TotalCount, MaxCount, MaxInternalCount, MaxFunctionCount; variable 61 uint64_t TotalCount, uint64_t MaxCount, in ProfileSummary() argument 65 TotalCount(TotalCount), MaxCount(MaxCount), in ProfileSummary() 78 uint64_t getTotalCount() { return TotalCount; } in getTotalCount()
|
/external/llvm/include/llvm/IR/ |
D | ProfileSummary.h | 55 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/libchrome/base/test/metrics/ |
D | histogram_tester.cc | 137 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/ |
D | IndirectCallPromotionAnalysis.h | 33 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount); 39 uint64_t TotalCount); 61 uint64_t &TotalCount,
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | IndirectCallPromotionAnalysis.h | 34 bool isPromotionProfitable(uint64_t Count, uint64_t TotalCount, 41 uint64_t TotalCount); 63 uint64_t &TotalCount,
|
/external/llvm/lib/ProfileData/ |
D | ProfileSummaryBuilder.cpp | 71 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-7.0/llvm/lib/ProfileData/ |
D | ProfileSummaryBuilder.cpp | 70 APInt Temp(128, TotalCount); in computeDetailedSummary() 76 assert(DesiredCount <= TotalCount); in computeDetailedSummary() 93 ProfileSummary::PSK_Sample, DetailedSummary, TotalCount, MaxCount, 0, in getSummary() 100 ProfileSummary::PSK_Instr, DetailedSummary, TotalCount, MaxCount, in getSummary()
|
/external/llvm/include/llvm/ProfileData/ |
D | ProfileCommon.h | 57 : DetailedSummaryCutoffs(std::move(Cutoffs)), TotalCount(0), MaxCount(0), in ProfileSummaryBuilder() 62 uint64_t TotalCount, MaxCount, MaxFunctionCount; variable 93 TotalCount += Count; in addCount()
|
D | InstrProf.h | 700 uint64_t &TotalCount = (TotalC == 0 ? Dummy : *TotalC); in getValueForSite() local 703 TotalCount = 0; in getValueForSite() 708 TotalCount = getValueForSite(VD.get(), ValueKind, Site); in getValueForSite() 717 uint64_t TotalCount = 0; in getValueForSite() local 721 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite() 724 return TotalCount; in getValueForSite()
|
/external/compiler-rt/lib/esan/ |
D | cache_frag.cpp | 58 u64 TotalCount; // The total access count of all structs. member 65 Ctx->TotalCount); in reportStructSummary() 125 Ctx->TotalCount += Handle->Count; in computeStructRatio()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/ |
D | ProfileCommon.h | 50 uint64_t TotalCount = 0; variable 93 TotalCount += Count; in addCount()
|
D | InstrProf.h | 804 uint64_t &TotalCount = (TotalC == nullptr ? Dummy : *TotalC); in getValueForSite() local 807 TotalCount = 0; in getValueForSite() 812 TotalCount = getValueForSite(VD.get(), ValueKind, Site); in getValueForSite() 821 uint64_t TotalCount = 0; in getValueForSite() local 825 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite() 828 return TotalCount; in getValueForSite()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ProfileSummary.cpp | 160 uint64_t NumCounts, TotalCount, NumFunctions, MaxFunctionCount, MaxCount, in getFromMD() local 163 TotalCount)) in getFromMD() 182 return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount, in getFromMD()
|