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

Jun Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 14:18:43 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");
+
----------------
jwanggit86 wrote:

Removed.

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


More information about the llvm-commits mailing list