[PATCH] D121400: [AArch64] Custom lower concat(v4i8 load, ...)

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 11:56:57 PST 2022


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

We already have custom lowering for v4i8 load, which loads as a f32, converts to a vector and bitcasts and extends the result to a v4i16. This adds some custom lowering of concat(v4i8 load, ...) to keep the result as an f32 and create a buildvector of the resulting f32 loads. This helps not create all the extends and bitcasts, which are often difficult to fully clean up.


https://reviews.llvm.org/D121400

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/insert-extend.ll
  llvm/test/CodeGen/AArch64/insert-subvector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121400.414434.patch
Type: text/x-patch
Size: 19912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220310/4a54fe91/attachment.bin>


More information about the llvm-commits mailing list