[PATCH] D126449: [AArch64] Reuse larger DUP if available

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 00:32:32 PDT 2022


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

If both a `v2i32 DUP(x)` and a `v4i32 DUP(x)` node exists, we can re-use the larger node using a vector extract to obtain the smaller. This comes up in the smull/smlal code, but needs a small fixup to allow the smull2 code in tryExtendDUPToExtractHigh/performAddSubLongCombine to still match smull2 extracts.


https://reviews.llvm.org/D126449

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/aarch64-matrix-umull-smull.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126449.432205.patch
Type: text/x-patch
Size: 5603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220526/2fa1eaae/attachment.bin>


More information about the llvm-commits mailing list