[all-commits] [llvm/llvm-project] bf16ce: [RISCV] fix RISCVPushPopOptimizer pass

dlav-sc via All-commits all-commits at lists.llvm.org
Wed Oct 2 03:26:14 PDT 2024


  Branch: refs/heads/users/dlav-sc/riscv-push-pop-fix
  Home:   https://github.com/llvm/llvm-project
  Commit: bf16cee03cfc5f639464d52b1c1fb5fab77e663b
      https://github.com/llvm/llvm-project/commit/bf16cee03cfc5f639464d52b1c1fb5fab77e663b
  Author: Daniil Avdeev <daniil.avdeev at syntacore.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVPushPopOptimizer.cpp

  Log Message:
  -----------
  [RISCV] fix RISCVPushPopOptimizer pass

RISCVPushPopOptimizer pass didn't suggest that CFI instructions can be
inserted between cm.pop and ret and couldn't apply optimization in these
cases. The patch fix it and allows the pass to remove CFI instructions and
combine cm.pop and ret into the one instruction: cm.popret or cm.popretz.


  Commit: 558c37228f3456343c54dcc5814c47cede0def2e
      https://github.com/llvm/llvm-project/commit/558c37228f3456343c54dcc5814c47cede0def2e
  Author: Daniil Avdeev <daniil.avdeev at syntacore.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M llvm/test/CodeGen/RISCV/callee-saved-gprs.ll
    M llvm/test/CodeGen/RISCV/cm_mvas_mvsa.ll
    M llvm/test/CodeGen/RISCV/push-pop-popret.ll
    M llvm/test/CodeGen/RISCV/zcmp-additional-stack.ll
    M llvm/test/CodeGen/RISCV/zcmp-cm-popretz.mir
    M llvm/test/CodeGen/RISCV/zcmp-with-float.ll

  Log Message:
  -----------
  [RISCV] update tests


Compare: https://github.com/llvm/llvm-project/compare/d8c8c1f4aaee...558c37228f34

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