[all-commits] [llvm/llvm-project] 8c6d83: [RISCV] Add isCommutable for pseudos without merge...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Tue Aug 29 00:52:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c6d8381ea2f5115c87d0fa303fa8393ac0575e1
      https://github.com/llvm/llvm-project/commit/8c6d8381ea2f5115c87d0fa303fa8393ac0575e1
  Author: wangpc <wangpengcheng.pp at bytedance.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfcmp-constrained-sdnode.ll
    M llvm/test/CodeGen/RISCV/rvv/vfcmp-constrained-sdnode.ll

  Log Message:
  -----------
  [RISCV] Add isCommutable for pseudos without merge operand

`vmadc` and vector mask-register logical instructions are commutable
and there is no merge operand for their pseudos.

We add `isCommutable=1` for these pseudos to gain more optimization
opportunities.

This patch fixes part of https://github.com/llvm/llvm-project/issues/64422.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D158976




More information about the All-commits mailing list