[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:19 PST 2026


================
@@ -285,13 +285,41 @@ class GCNRPTracker {
 
 protected:
   const LiveIntervals &LIS;
-  LiveRegSet LiveRegs;
-  GCNRegPressure CurPressure, MaxPressure;
+
+  // Virtual register tracking
+  LiveRegSet VirtLiveRegs;
+  GCNRegPressure CurVirtPressure, MaxVirtPressure;
+
+  // Physical register tracking
----------------
rovka wrote:

This comment should explain why we need to track virtual and physical registers separately. LiveRegSet is supposed to be able to handle both.

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


More information about the llvm-commits mailing list