[llvm-branch-commits] [llvm] [2/3][AMDGPU] Physical register tracking in GCN trackers. (PR #184275)

Dhruva Chakrabarti via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 24 09:59:25 PDT 2026


dhruvachak wrote:

As per discussion, the GCNPressure objects have been unified, tracking both virtual and physical registers. 

The live register representation has been extended to track both regunits and registers, so that accurate pressure can be reconstructed. The reconstruction capability is required for validation purposes.

The live-reg-sets for virtual and physical remain distinct. I explored unifying them but it does not look like there is anything to gain. The representations are different, so the lower level APIs will remain distinct. Even if we have a wrapper struct, it will only increase the indirection level for every access to the live-reg object.

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


More information about the llvm-branch-commits mailing list