[PATCH] D120879: [AArch64] Turn UZP1 with undef operand into truncate

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 01:50:19 PST 2022


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

This turns `upz1(x, undef)` to `concat(truncate(x), undef)`, as the truncate is simpler and can often be optimized away, and it helps some of the insert-subvector tests optimize more cleanly.


https://reviews.llvm.org/D120879

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120879.412628.patch
Type: text/x-patch
Size: 11510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/fe06b4aa/attachment.bin>


More information about the llvm-commits mailing list