[all-commits] [llvm/llvm-project] c2614b: [RISCV] Add isCommutable to scalar FMA instructions.

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Apr 27 11:17:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2614b31d955f799179c34215b1225d0131da378
      https://github.com/llvm/llvm-project/commit/c2614b31d955f799179c34215b1225d0131da378
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoF.td
    M llvm/test/CodeGen/RISCV/machine-cse.ll

  Log Message:
  -----------
  [RISCV] Add isCommutable to scalar FMA instructions.

The default implementation of findCommutedOpIndices picks the
first two source operands. That's exactly what we want for the
scalar FMA instructions.

Reviewed By: reames

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




More information about the All-commits mailing list