[llvm] [AMDGPU] Add register usage diagnostics at the point of maximum register pressure. (PR #161850)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 20:09:40 PDT 2025


================
@@ -960,6 +975,16 @@ void GCNScheduleDAGMILive::runSchedStages() {
       RegionLiveOuts.buildLiveRegMap();
   }
 
+#ifdef DUMP_MAX_REG_PRESSURE
+  auto dumpRegUsage = [this]() {
+    dumpMaxRegPressure(MF, GCNRegPressure::VGPR, *LIS, MLI);
+    dumpMaxRegPressure(MF, GCNRegPressure::SGPR, *LIS, MLI);
+    LIS->dump();
----------------
arsenm wrote:

It's still trivial enough to just duplicate 

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


More information about the llvm-commits mailing list