[all-commits] [llvm/llvm-project] 1235a9: [MachinePipeliner] Use `RegisterClassInfo::getRegP...

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Tue Dec 17 23:13:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1235a93fae60bed5814e918dd8608097d9302a59
      https://github.com/llvm/llvm-project/commit/1235a93fae60bed5814e918dd8608097d9302a59
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2024-12-18 (Wed, 18 Dec 2024)

  Changed paths:
    M llvm/lib/CodeGen/MachinePipeliner.cpp

  Log Message:
  -----------
  [MachinePipeliner] Use `RegisterClassInfo::getRegPressureSetLimit` (#119827)

`RegisterClassInfo::getRegPressureSetLimit` is a wrapper of
`TargetRegisterInfo::getRegPressureSetLimit` with some logics to
adjust the limit by removing reserved registers.

It seems that we shouldn't use
`TargetRegisterInfo::getRegPressureSetLimit`
directly, just like the comment "This limit must be adjusted
dynamically for reserved registers" said.

Thus we should use `RegisterClassInfo::getRegPressureSetLimit` and
remove replicated code.

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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list