[all-commits] [llvm/llvm-project] f33e9f: [SampleProfile] Fix FuncMappings key mismatch for ...

Wei Wang via All-commits all-commits at lists.llvm.org
Fri Apr 3 11:39:12 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f33e9faa5d65a16c7366bfec3b11abddee9d6a08
      https://github.com/llvm/llvm-project/commit/f33e9faa5d65a16c7366bfec3b11abddee9d6a08
  Author: Wei Wang <apollo.mobility at gmail.com>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
    M llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp
    A llvm/test/Transforms/SampleProfile/Inputs/pseudo-probe-stale-profile-renaming-lineshift.prof
    M llvm/test/Transforms/SampleProfile/pseudo-probe-stale-profile-renaming.ll

  Log Message:
  -----------
  [SampleProfile] Fix FuncMappings key mismatch for renamed functions in stale profile matching (#187899)

Fix a bug where `distributeIRToProfileLocationMap` fails to find
location mappings from IR to profile for renamed functions because
`FuncMappings` is indexed by the IR function name while
`distributeIRToProfileLocationMap` looks up by the profile function
name. Fixed by making `FuncMappings` to use profile function name as
key.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list