[all-commits] [llvm/llvm-project] 9542cf: [JumpTableToSwitch] Fix wrong function used for GU...

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Sun Apr 19 18:47:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9542cfa1ad91c8510904f04fd780e4fcad319694
      https://github.com/llvm/llvm-project/commit/9542cfa1ad91c8510904f04fd780e4fcad319694
  Author: Alexander Shaposhnikov <ashaposhnikov at google.com>
  Date:   2026-04-19 (Sun, 19 Apr 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpTableToSwitch.cpp
    A llvm/test/Transforms/JumpTableToSwitch/profile-no-guid-metadata.ll

  Log Message:
  -----------
  [JumpTableToSwitch] Fix wrong function used for GUID computation (#192877)

The FuncToGuid lambda's fallback path (when target functions lack !guid
metadata) was using 'F' (the caller) instead of 'Fct' (the callee) in
getIRPGOFuncName, causing all GUID lookups to resolve to the caller's
GUID.



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