[llvm] [AMDGPU] Skip register uses in AMDGPUResourceUsageAnalysis (PR #133242)

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Mon May 26 05:03:09 PDT 2025


================
@@ -974,6 +974,19 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
     return NumUserSGPRs + NumSystemSGPRs;
   }
 
+  unsigned getNumPreloadedVGPRs() const {
----------------
rovka wrote:

> Does this need to handle all the other things that can get preloaded in VGPRs for graphics shaders? Or can you comment (or assert) that it is only for compute shaders?

I commented that it's only for compute. (I tried extracting the code from AMDGPUAsmPrinter but didn't like how it turned out).

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


More information about the llvm-commits mailing list