Lines Matching +full:compute +full:- +full:cb
1 //=- SyntheticCountsPropagation.cpp - Propagate function counts --*- C++ -*-=//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 // is applied only in non PGO mode as functions get 'real' profile-based
18 // counts of all functions and then doing a top-down traversal of the
19 // callgraph-scc to propagate the counts. For each function the set of callsites
22 // count. For non-trivial SCCs, the new counts are computed from the previous
25 //===----------------------------------------------------------------------===//
40 #define DEBUG_TYPE "synthetic-counts-propagation"
44 InitialSyntheticCount("initial-synthetic-count", cl::Hidden, cl::init(10),
50 "inline-synthetic-count", cl::Hidden, cl::init(15),
55 "cold-synthetic-count", cl::Hidden, cl::init(5),
107 CallBase &CB = *cast<CallBase>(*Edge.first); in run() local
108 Function *Caller = CB.getCaller(); in run()
111 // Now compute the callsite count from relative frequency and in run()
113 BasicBlock *CSBB = CB.getParent(); in run()
125 auto F = N->getFunction(); in run()
126 if (!F || F->isDeclaration()) in run()
134 Entry.first->setEntryCount(ProfileCount( in run()