[PATCH] D147428: [LoongArch] Optimize multiplication with immediates
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 17:47:43 PDT 2023
benshi001 added inline comments.
================
Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.td:431
+// Check if (mul r, imm) can be optimized to (SLLI (ALSL r, i0), i1), in which
+// imm = (1 + (1 << i0)) << i1.
----------------
SixWeining wrote:
> Nit: ALSl r, r, i0
Thanks! I have fixed it before doing `git push`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147428/new/
https://reviews.llvm.org/D147428
More information about the llvm-commits
mailing list