================
@@ -130,6 +131,10 @@ struct GCNRegPressure {
LaneBitmask NewMask,
const MachineRegisterInfo &MRI);
+ /// Update pressure for a physical register (add or remove). Used when
+ /// tracking physical registers.
+ void inc(MCRegister Reg, bool IsAdd, const MachineRegisterInfo &MRI);
----------------
macurtis-amd wrote:
nit: I think it would be more readable at the call sites if this was:
```
void inc(MCRegister Reg, const MachineRegisterInfo &MRI, bool IsAdd = true);
void dec(MCRegister Reg, const MachineRegisterInfo &MRI) { inc(Reg, MRI,
false); }
```
https://github.com/llvm/llvm-project/pull/184275
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits