[PATCH] D143710: [LoongArch] Emit addu16i.d for simple adds with eligible immediates

WÁNG Xuěruì via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 01:32:20 PST 2023


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

Ideally `addu16i.d` could be paired with `{ld,st}ptr` insns for faster
memory accesses with 32-bit-aligned offsets, or with `addi` for adding
a wider range of immediates (basically resembling `0xAAAA0BBB` in
non-edge cases), but these cases would require more work. These will be
added later.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143710

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143710.496376.patch
Type: text/x-patch
Size: 5892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230210/c2654d46/attachment.bin>


More information about the llvm-commits mailing list