[all-commits] [llvm/llvm-project] 5b06cb: [RISCV] Fix reporting of incorrect commutable oper...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Fri Aug 20 02:37:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b06cbac11e53ce55f483c1852a108012507a6bb
      https://github.com/llvm/llvm-project/commit/5b06cbac11e53ce55f483c1852a108012507a6bb
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    A llvm/test/CodeGen/RISCV/rvv/commuted-op-indices-regression.mir

  Log Message:
  -----------
  [RISCV] Fix reporting of incorrect commutable operand indices

This patch fixes an issue where RISCV's `findCommutedOpIndices` would
incorrectly return the pseudo `CommuteAnyOperandIndex` as a commutable
operand index, rather than fixing a specific index.

Reviewed By: rogfer01

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




More information about the All-commits mailing list