[all-commits] [llvm/llvm-project] 02c9e8: [InstCombine][MemProf] Preserve all metadata (#169...

Marco Elver via All-commits all-commits at lists.llvm.org
Tue Nov 25 07:56:29 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02c9e8987a22753417c721eba5e5848f3fe33a24
      https://github.com/llvm/llvm-project/commit/02c9e8987a22753417c721eba5e5848f3fe33a24
  Author: Marco Elver <elver at google.com>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/simplify-libcalls-new.ll

  Log Message:
  -----------
  [InstCombine][MemProf] Preserve all metadata (#169242)

When rewriting operator new calls to their hot/cold variants for PGHO,
`!alloc_token` metadata was being dropped. This metadata is required by
the AllocToken pass to correctly instrument the optimized allocation.

Fix it by preserving all metadata.



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