[all-commits] [llvm/llvm-project] a4dec9: [CodeGen] Fix register pressure computation in Mac...

Ryotaro KASUGA via All-commits all-commits at lists.llvm.org
Mon Apr 1 01:05:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4dec9d6bc67c4d8fbd4a4f54ffaa0399def9627
      https://github.com/llvm/llvm-project/commit/a4dec9d6bc67c4d8fbd4a4f54ffaa0399def9627
  Author: Ryotaro KASUGA <kasuga.ryotaro at fujitsu.com>
  Date:   2024-04-01 (Mon, 01 Apr 2024)

  Changed paths:
    M llvm/lib/CodeGen/MachinePipeliner.cpp
    A llvm/test/CodeGen/AArch64/sms-regpress.mir
    M llvm/test/CodeGen/PowerPC/sms-regpress.mir

  Log Message:
  -----------
  [CodeGen] Fix register pressure computation in MachinePipeliner (#87030)

`RegisterClassInfo::getRegPressureSetLimit` has been changed to return a
smaller value than before so the limit may become negative in later
calculations. As a workaround, change to use
`TargetRegisterInfo::getRegPressureSetLimit`.
Also improve tests.



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