[PATCH] D147400: [LoongArch] Optimize multiplication with immediates

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 1 22:19:45 PDT 2023


benshi001 created this revision.
benshi001 added reviewers: SixWeining, wangleiat, XiaodongLoong, xen0n.
Herald added a subscriber: hiraditya.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.

Optimize multiplication with some specific immediates to
a pair of `alsl`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147400

Files:
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147400.510301.patch
Type: text/x-patch
Size: 7185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230402/2a0b5c0f/attachment.bin>


More information about the llvm-commits mailing list