[llvm] [AMDGPU] Move stress options into getMaxNumVectorRegs/getBaseMaxNumSGPRs (PR #214762)

Romanov Vlad via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 04:34:25 PDT 2026


================
@@ -53,6 +53,18 @@ static cl::opt<unsigned>
                  cl::desc("Number of addresses from which to enable MIMG NSA."),
                  cl::init(2), cl::Hidden);
 
+static cl::opt<unsigned>
+    StressVGPRLimit("amdgpu-stress-vgpr", cl::Hidden, cl::init(0),
+                    cl::desc("Limit VGPRs to N arch registers"));
+
+static cl::opt<unsigned>
+    StressAGPRLimit("amdgpu-stress-agpr", cl::Hidden, cl::init(0),
----------------
romanovvlad wrote:

They are being moved to where agpr/vgpr/sgpr nums are being calculated for a target.
What would you recommend?

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


More information about the llvm-commits mailing list