[llvm] [TRI] Remove reserved registers in getRegPressureSetLimit (PR #118787)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 21:23:36 PST 2024


================
@@ -1327,47 +1327,6 @@ class HighRegisterPressureDetector {
   void computePressureSetLimit(const RegisterClassInfo &RCI) {
     for (unsigned PSet = 0; PSet < PSetNum; PSet++)
       PressureSetLimit[PSet] = TRI->getRegPressureSetLimit(MF, PSet);
-
----------------
kasuga-fj wrote:

I dared to replace it from `RegisterClassInfo::getRegPressureSetLimit` before (in #87312). This is because there were duplicate registers between what `RegisterClassInfo::getRegPressureSetLimit` removes and the `fixed` registers mentioned here. If `RegisterClassInfo::getRegPressureSetLimit` now takes care of both, I don't think it's a problem to remove this part as you did.

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


More information about the llvm-commits mailing list