[llvm] [llvm-profgen] Infer callsite samples for functions without samples (PR #191572)
Wei Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 17:08:47 PDT 2026
================
@@ -1373,6 +1382,102 @@ void CSProfileGenerator::populateBoundarySamplesWithProbes(
}
}
+void CSProfileGenerator::inferCallsiteSamples() {
----------------
apolloww wrote:
You mean `populateBodySamplesWithProbes` from `CSProfileGenerator::generateProbeBasedProfile()`? `populateBoundarySamplesWithProbesForAllFunctions` is for probe-only profile.
We do not know callee's head count until all the sample counters have been processed and trie is built.
https://github.com/llvm/llvm-project/pull/191572
More information about the llvm-commits
mailing list