[PATCH] D142044: [RISCV] Use canonical move instruction in RISCVAsmPrinter::EmitHwasanMemaccessSymbols.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 18 11:44:37 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG97cb6191173e: [RISCV] Use canonical move instruction in RISCVAsmPrinter… (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142044/new/
https://reviews.llvm.org/D142044
Files:
llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
Index: llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
+++ llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
@@ -449,10 +449,10 @@
8),
MCSTI);
if (Reg != RISCV::X10)
- OutStreamer->emitInstruction(MCInstBuilder(RISCV::OR)
+ OutStreamer->emitInstruction(MCInstBuilder(RISCV::ADDI)
.addReg(RISCV::X10)
- .addReg(RISCV::X0)
- .addReg(Reg),
+ .addReg(Reg)
+ .addImm(0),
MCSTI);
OutStreamer->emitInstruction(
MCInstBuilder(RISCV::ADDI)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142044.490262.patch
Type: text/x-patch
Size: 874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230118/555570a5/attachment.bin>
More information about the llvm-commits
mailing list