[libcxx] [clang-tools-extra] [flang] [compiler-rt] [libc] [llvm] [libcxxabi] [lld] [clang] [CSSPGO] Compute and report post-match profile staleness (PR #79090)

via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 27 10:40:06 PST 2024


================
@@ -2205,93 +2230,141 @@ void SampleProfileMatcher::countMismatchedSamples(const FunctionSamples &FS) {
       countMismatchedSamples(CS.second);
 }
 
-void SampleProfileMatcher::countProfileMismatches(
-    const Function &F, const FunctionSamples &FS,
-    const std::map<LineLocation, StringRef> &IRAnchors,
+void ProfileMatchStats::countMismatchedCallsites(
----------------
WenleiHe wrote:

naming: `count` is a stateless and immutable action, but it's not the case here as you are tracking and recording `FuncMismatchedCallsites` that later stats depends on. 

https://github.com/llvm/llvm-project/pull/79090


More information about the cfe-commits mailing list