[all-commits] [llvm/llvm-project] 97cb61: [RISCV] Use canonical move instruction in RISCVAsm...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Jan 18 11:44:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97cb6191173ea4de67e7c5a2f0dbfe61109a5c71
      https://github.com/llvm/llvm-project/commit/97cb6191173ea4de67e7c5a2f0dbfe61109a5c71
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

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

  Log Message:
  -----------
  [RISCV] Use canonical move instruction in RISCVAsmPrinter::EmitHwasanMemaccessSymbols.

We were using an OR with X0 which is the canonical move for AArch64.
The canonical move for RISC-V is ADDI reg1, reg2, 0.

Reviewed By: reames

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




More information about the All-commits mailing list