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

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 6 19:13:31 PST 2025


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

This should be more targeted. This is going to lose useful information, like `!reqd_work_group_size`

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


More information about the llvm-branch-commits mailing list