[llvm] [SampleProfile] Annotate always inlined function with flattened samples (PR #221157)
Wei Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 11:47:30 PDT 2026
================
@@ -696,6 +695,14 @@ void SampleProfileMatcher::computeAndReportProfileStaleness() {
if (SalvageUnusedProfile && !CallGraphRecoveredProfiles.empty())
countCallGraphRecoveredSamples(*FS, CallGraphRecoveredProfiles);
+ else {
+ auto I = FuncMappings.find(FS->getFuncName());
+ if (I != FuncMappings.end() && checksumMismatch(F, *FS)) {
----------------
apolloww wrote:
Is `FuncMapping` set for every function, which makes the check always true?
https://github.com/llvm/llvm-project/pull/221157
More information about the llvm-commits
mailing list