[PATCH] D95428: [ARM] Add MVE insert-of-extract pattern
    Dave Green via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Jan 26 01:34:39 PST 2021
    
    
  
dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, simon_tatham, efriedma, ostannard, NickGuy.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.
A v4i32 insert of an extract can become a simple lane move, as opposed to round-tripping via a GPR. This adds a patterns that turns an v4i32 insert-extract pair into a EXTRACT_SUBREG/INSERT_SUBREG, with the required COPY_TO_REGCLASS. These get better optimized into a simple lane move by the rest of the backed.
https://reviews.llvm.org/D95428
Files:
  llvm/lib/Target/ARM/ARMInstrMVE.td
  llvm/test/CodeGen/Thumb2/mve-shuffle.ll
  llvm/test/CodeGen/Thumb2/mve-vecreduce-add.ll
  llvm/test/CodeGen/Thumb2/mve-vld3.ll
  llvm/test/CodeGen/Thumb2/mve-vst3.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95428.319242.patch
Type: text/x-patch
Size: 26256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210126/7d62d607/attachment.bin>
    
    
More information about the llvm-commits
mailing list