[llvm] [AMDGPU] Rematerialize VGPR candidates when SGPR spills results in VGPR Excess (PR #168079)
Lucas Ramirez via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 19 05:47:40 PST 2025
Juan Manuel Martinez =?utf-8?q?Caamaño?=,
Juan Manuel Martinez =?utf-8?q?Caamaño?=,
Juan Manuel Martinez =?utf-8?q?Caamaño?=,
Juan Manuel Martinez =?utf-8?q?Caamaño?=,
Juan Manuel Martinez =?utf-8?q?Caamaño?=,
Juan Manuel Martinez =?utf-8?q?Caamaño?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/168079 at github.com>
================
@@ -97,6 +97,46 @@ void GCNRegPressure::inc(unsigned Reg,
Value[RegKind] += Sign;
}
+struct RegExcess {
+ unsigned SGPR = 0;
+ unsigned VGPR = 0;
+ unsigned ArchVGPR = 0;
+ unsigned AGPR = 0;
----------------
lucas-rami wrote:
The naming convention in this pressure tracking infra is that AGPR == AccGPR and VGPR is ArchGPR + AccGPR (e.g, `GCNRegPressure::getNumVGPRs`). I think we should probably do a name uniformization pass on these things at some point since it's not consistent with other parts of the backend.
https://github.com/llvm/llvm-project/pull/168079
More information about the llvm-commits
mailing list