[llvm-branch-commits] [llvm] [AMDGPU] Remove dead function metadata after amdgpu-lower-kernel-arguments (PR #126147)

Scott Linder via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 7 06:57:02 PST 2025


================
@@ -132,6 +132,7 @@ class PreloadKernelArgInfo {
     NF->setAttributes(AL);
     F.replaceAllUsesWith(NF);
     F.setCallingConv(CallingConv::C);
+    F.clearMetadata();
----------------
slinder1 wrote:

I'm a bit lost, isn't any useful metadata already poached by the new function? Is the original function declaration still meaningful in any way? 

https://github.com/llvm/llvm-project/pull/126147


More information about the llvm-branch-commits mailing list