[PATCH] D70841: [ARM][MVE] Sink vector shift operand

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 00:58:10 PST 2019


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

The shift amount operand can be provided in a general purpose register so sink it. Patterns have been added for lshr and ashr where we use a negated shift value for with a 'shift left' instruction.


https://reviews.llvm.org/D70841

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/lib/Target/ARM/ARMInstrMVE.td
  llvm/test/CodeGen/Thumb2/mve-shifts-scalar.ll
  llvm/test/CodeGen/Thumb2/mve-shifts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70841.231486.patch
Type: text/x-patch
Size: 20694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191129/ed7454e7/attachment.bin>


More information about the llvm-commits mailing list