[PATCH] D108551: [RISCV] Make more optimization for multiplication in the zba extension with SH*ADD.
Jessica Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 23 06:22:24 PDT 2021
jrtc27 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoB.td:1083
+def : Pat<(mul GPR:$rs1, CPow2Plus4:$i),
+ (SH1ADD GPR:$rs1, (SLLI GPR:$rs1,
+ (SimmMinus4Lg2XForm CPow2Plus4:$i)))>;
----------------
SH2ADD?
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoB.td:1086
+def : Pat<(mul GPR:$rs1, CPow2Plus8:$i),
+ (SH1ADD GPR:$rs1, (SLLI GPR:$rs1,
+ (SimmMinus8Lg2XForm CPow2Plus8:$i)))>;
----------------
SH3ADD?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108551/new/
https://reviews.llvm.org/D108551
More information about the llvm-commits
mailing list