[llvm] [AMDGPU] Remove the AnnotateKernelFeatures pass (PR #130198)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 13 00:21:25 PDT 2025


================
@@ -629,12 +623,16 @@ GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,
       DispatchID = true;
   }
 
-  // TODO: This could be refined a lot. The attribute is a poor way of
-  // detecting calls or stack objects that may require it before argument
-  // lowering.
+  const bool IsNoFlatScratchInitSet =
+      F.hasFnAttribute("amdgpu-no-flat-scratch-init");
+
----------------
arsenm wrote:

```suggestion
```

This is now unused 

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


More information about the llvm-commits mailing list