[RISCV] Use canonical move instruction in RISCVAsmPrinter::EmitHwasanMemaccessSymbols.
authorCraig Topper <craig.topper@sifive.com>
Wed, 18 Jan 2023 19:38:38 +0000 (11:38 -0800)
committerCraig Topper <craig.topper@sifive.com>
Wed, 18 Jan 2023 19:38:39 +0000 (11:38 -0800)
commit97cb6191173ea4de67e7c5a2f0dbfe61109a5c71
treed52aa644f1df1e1ad02912ec1212090612416af5
parent82fa51f74dc71a541c5176ecf7f252713319c809
[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
llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp