[PATCH] D104515: [ARM] Lower MVETRUNC to stack operations

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 18 03:04:26 PDT 2021


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

The MVETRUNC node truncates two wide vectors to a single vector with narrower elements. This is usually lowered to a series of extract/insert elements, going via GPR registers. This patch changes that to instead use a pair of truncating stores and a stack reload. This cuts down the number of instructions at the expense of some stack space.


https://reviews.llvm.org/D104515

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/mve-laneinterleaving.ll
  llvm/test/CodeGen/Thumb2/mve-scatter-ind16-unscaled.ll
  llvm/test/CodeGen/Thumb2/mve-scatter-ind8-unscaled.ll
  llvm/test/CodeGen/Thumb2/mve-sext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104515.352955.patch
Type: text/x-patch
Size: 20289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210618/68f66a0b/attachment.bin>


More information about the llvm-commits mailing list