[llvm] [AMDGPU] Add register usage diagnostics at the point of maximum register pressure. (PR #161850)
Valery Pykhtin via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 06:00:02 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();
----------------
vpykhtin wrote:
But it called twice, before and after scheduling.
https://github.com/llvm/llvm-project/pull/161850
More information about the llvm-commits
mailing list