[llvm] [AMDGPU] Physical register tracking in GCN trackers. (PR #177223)

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 04:00:16 PST 2026


================
@@ -1008,21 +1251,22 @@ LLVM_DUMP_METHOD void llvm::dumpMaxRegPressure(MachineFunction &MF,
   const char *RegName = GCNRegPressure::getName(Kind);
 
   unsigned MaxNumRegs = 0;
-  const MachineInstr *MaxPressureMI = nullptr;
+  const MachineInstr *MaxVirtPressureMI = nullptr;
   GCNUpwardRPTracker RPT(LIS);
+  RPT.initPhysLiveRegs(MRI);
----------------
rovka wrote:

Can you move this to the constructor?

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


More information about the llvm-commits mailing list