[PATCH] D67956: [ARM] Lower MVE i1 inserts through shifts, not inreg extend

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 04:12:49 PDT 2019


dmgreen created this revision.
dmgreen added reviewers: efriedma, samparker, simon_tatham, SjoerdMeijer, ostannard.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: LLVM.

This is an alternative to D67614 <https://reviews.llvm.org/D67614>. Instead of lowering i1 inserts through a SIGN_EXTEND_INREG and a BFI, we can go via a SHL and a SRA (and the BFI). This, instead of being optimised to a rsb ubfx pair, will become a sbfx as desired.


https://reviews.llvm.org/D67956

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/mve-masked-ldst.ll
  llvm/test/CodeGen/Thumb2/mve-pred-bitcast.ll
  llvm/test/CodeGen/Thumb2/mve-pred-build-var.ll
  llvm/test/CodeGen/Thumb2/mve-pred-loadstore.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67956.221502.patch
Type: text/x-patch
Size: 27645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190924/98950194/attachment.bin>


More information about the llvm-commits mailing list