================ @@ -925,9 +925,16 @@ class TargetRegisterInfo : public MCRegisterInfo { virtual const char *getRegPressureSetName(unsigned Idx) const = 0; /// Get the register unit pressure limit for this dimension. - /// This limit must be adjusted dynamically for reserved registers. + /// TargetRegisterInfo adjusts this limit for reserved registers. + /// Avoid using this method directly as it is costly to compute. Use the + /// cached version `RegisterClassInfo::getRegPressureSetLimit` instead. virtual unsigned getRegPressureSetLimit(const MachineFunction &MF, ---------------- wangpc-pp wrote:
If moving to `MachineRegisterInfo`, then AMDGPU target will not be able to override it and that will cause regressions. https://github.com/llvm/llvm-project/pull/118787 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits