[llvm] [SampleProfile] Annotate always inlined function with flattened samples (PR #221157)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 00:14:49 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)) {
+ NumCallGraphRecoveredProfiledFunc++;
+ CallGraphRecoveredProfiles.insert(FS->getFunction());
----------------
HighW4y2H3ll wrote:
fixed! thanks for catching this.
https://github.com/llvm/llvm-project/pull/221157
More information about the llvm-commits
mailing list