[PATCH] D103704: [ARM] Extend narrow values to allow using truncating scatters

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 09:53:31 PDT 2021


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

As a minor adjustment to the existing lowering of offset scatters, this extends any smaller-than-legal vectors into full vectors using a zext, so that the truncating scatters can be used. Due to the way MVE legalizes the vectors this should be cheap in most situations, and will prevent the vector from being scalarized.


https://reviews.llvm.org/D103704

Files:
  llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
  llvm/test/CodeGen/Thumb2/mve-scatter-ind32-unscaled.ll
  llvm/test/CodeGen/Thumb2/mve-scatter-ind8-unscaled.ll
  llvm/test/CodeGen/Thumb2/mve-scatter-ptrs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103704.349902.patch
Type: text/x-patch
Size: 5483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/6ca8680b/attachment.bin>


More information about the llvm-commits mailing list