[llvm] [AMDGPU] Allocate AVRegClass last (PR #146606)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 18:04:48 PDT 2025


================
@@ -109,6 +109,10 @@ class SIRegisterClass <string n, list<ValueType> rTypes, int Align, dag rList>
   let TSFlags{2} = HasVGPR;
   let TSFlags{3} = HasAGPR;
   let TSFlags{4} = HasSGPR;
+
+  // RegisterClass (e.g. AGPR / VGPR) priority for allocation
----------------
arsenm wrote:

I think this needs more commentary on how this interacts with the real priority. Maybe call this BasePriority or something? 

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


More information about the llvm-commits mailing list