[llvm-branch-commits] [llvm] [TRI] Remove reserved registers in getRegPressureSetLimit (PR #211743)

Pengcheng Wang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 18 05:20:34 PDT 2026


================
@@ -781,9 +781,16 @@ class LLVM_ABI 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.
+  /// The limit will be adjusted 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:

Thanks! Will do that!

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


More information about the llvm-branch-commits mailing list