Lines Matching refs:Count
125 const uint64_t Count; member
127 PromotionCandidate(Function *F, uint64_t C) : TargetFunction(F), Count(C) {} in PromotionCandidate()
175 uint64_t Count = ValueDataRef[I].Count; in getPromotionCandidatesForCallSite() local
176 assert(Count <= TotalCount); in getPromotionCandidatesForCallSite()
179 LLVM_DEBUG(dbgs() << " Candidate " << I << " Count=" << Count in getPromotionCandidatesForCallSite()
233 << NV("Count", Count) << ": " << Reason; in getPromotionCandidatesForCallSite()
238 Ret.push_back(PromotionCandidate(TargetFunction, Count)); in getPromotionCandidatesForCallSite()
239 TotalCount -= Count; in getPromotionCandidatesForCallSite()
245 uint64_t Count, uint64_t TotalCount, in promoteIndirectCall() argument
249 uint64_t ElseCount = TotalCount - Count; in promoteIndirectCall()
250 uint64_t MaxCount = (Count >= ElseCount ? Count : ElseCount); in promoteIndirectCall()
254 scaleBranchCount(Count, Scale), scaleBranchCount(ElseCount, Scale)); in promoteIndirectCall()
260 setBranchWeights(NewInst, {static_cast<uint32_t>(Count)}); in promoteIndirectCall()
269 << " with count " << NV("Count", Count) << " out of " in promoteIndirectCall()
282 uint64_t Count = C.Count; in tryToPromote() local
283 pgo::promoteIndirectCall(CB, C.TargetFunction, Count, TotalCount, SamplePGO, in tryToPromote()
285 assert(TotalCount >= Count); in tryToPromote()
286 TotalCount -= Count; in tryToPromote()