[PATCH] D96159: [ARM] Optimize fp store of extract to integer store if already available.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 5 10:11:54 PST 2021


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

Given a floating point store from an extracted vector, with an integer VGETLANE that already exists, storing the existing VGETLANEu directly can be better for performance. As the value is known to already be in an integer registers, this can help reduce fp register pressure, removed the need for the fp extract and allows use of more integer post-inc stores not available with vstr.

This can be a bit narrow in scope, but helps with certain biquad kernels that store shuffled vector elements.


https://reviews.llvm.org/D96159

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/mve-extractstore.ll
  llvm/test/CodeGen/Thumb2/mve-float16regloops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96159.321818.patch
Type: text/x-patch
Size: 8864 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210205/449dc5f9/attachment.bin>


More information about the llvm-commits mailing list