[PATCH] D128426: [AArch64] Convert vector add(ext, ext) into ext(add(ext, ext))

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 23 04:14:19 PDT 2022


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, jaykang10, samtebbs, fhahn.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

Given a vector add or sub from extends that needs more that one 'step' (i.e i8 to i32 or i16 to i64), we can transform the sequence to `sext(add(ext, ext))`, to allow the `add(ext, ext)` to become a single uaddl and a larger extend, producing less instructions in total.
https://alive2.llvm.org/ce/z/S2T4k-


https://reviews.llvm.org/D128426

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/insert-extend.ll
  llvm/test/CodeGen/AArch64/neon-extadd.ll
  llvm/test/CodeGen/AArch64/reduce-shuffle.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128426.439303.patch
Type: text/x-patch
Size: 63946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220623/70a64119/attachment-0001.bin>


More information about the llvm-commits mailing list