[PATCH] D134336: [AArch64] Lower multiplication by a constant int to madd
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 13:39:02 PDT 2022
efriedma added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:5800
// ADD R,I,Imm
- // ==> ORR V, ZR, Imm
+ // ==> ORR V, ZR, Imm or MOV V, Imm
// ==> MADD R,A,B,V
----------------
Just make this say "mov", since that's always the alias.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:5840
+ .addImm(MovI->Op2);
+ else
+ MIB1 = BuildMI(MF, Root.getDebugLoc(), TII->get(MovI->Opcode), NewVR)
----------------
Maybe assert that the opcode is movn or movz here? For documentation.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134336/new/
https://reviews.llvm.org/D134336
More information about the llvm-commits
mailing list