[PATCH] D101263: [ARM] Recognize VIDUP from BUILDVECTORs of additions

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 25 11:59:09 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, simon_tatham, ostannard, efriedma, samtebbs, malharJ.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This adds a pattern to recognize VIDUP from BUILD_VECTOR of incrementing adds. This can come up from either geps or adds, and came up recently in D100550 <https://reviews.llvm.org/D100550>. We are just looking for a BUILD_VECTOR where each lane is an add of the first lane with N*i, where i is the lane and N is one of 1, 2, 4, or 8, supported by the VIDUP instruction.


https://reviews.llvm.org/D101263

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/lib/Target/ARM/ARMISelLowering.h
  llvm/lib/Target/ARM/ARMInstrInfo.td
  llvm/lib/Target/ARM/ARMInstrMVE.td
  llvm/test/CodeGen/Thumb2/mve-tailpred-loopinvariant.ll
  llvm/test/CodeGen/Thumb2/mve-vidup.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101263.340376.patch
Type: text/x-patch
Size: 15390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210425/e01dba5d/attachment.bin>


More information about the llvm-commits mailing list