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

Romanov Vlad via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 08:18:03 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:

Yes, for testing only.

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


More information about the llvm-commits mailing list