[all-commits] [llvm/llvm-project] eaa460: [AMDGPU] Remove dead function metadata after amdgp...

Scott Linder via All-commits all-commits at lists.llvm.org
Mon Feb 17 10:27:45 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eaa460ca499bec0547393bae7c18b128c2926839
      https://github.com/llvm/llvm-project/commit/eaa460ca499bec0547393bae7c18b128c2926839
  Author: Scott Linder <scott.linder at amd.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
    M llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll

  Log Message:
  -----------
  [AMDGPU] Remove dead function metadata after amdgpu-lower-kernel-arguments (#126147)

The verifier ensures function !dbg metadata is unique across the module,
so ensure the old nameless function we leave behind doesn't violate
this invariant.

Removing the function via e.g. eraseFromParent seems like a better
option, but doesn't seem to be legal from a FunctionPass.



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