[llvm] [AMDGPU] Use correct VGPR threshold for flagging ExcessRP regions in unified register file case (PR #85860)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 04:01:31 PDT 2024


================
@@ -110,7 +110,7 @@ bool GCNRegPressure::less(const MachineFunction &MF, const GCNRegPressure &O,
   if (Occ != OtherOcc)
     return Occ > OtherOcc;
 
-  unsigned MaxVGPRs = ST.getMaxNumVGPRs(MF);
+  unsigned MaxVGPRs = ST.getMaxNumVGPRs(MF, /*WholeRegisterFile*/ true);
----------------
arsenm wrote:

```suggestion
  unsigned MaxVGPRs = ST.getMaxNumVGPRs(MF, /*WholeRegisterFile=*/ true);
```

Parameter name comments need a trailing = for clang-format to recognize them 

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


More information about the llvm-commits mailing list