[PATCH] D103808: [ARM] Generate VDUP(Const) from constant buildvectors

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 7 06:20:26 PDT 2021


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

If we cannot otherwise use a VMOVimm/VMOVFPimm/VMVNimm, fall back to producing a VDUP(const) as opposed to a constant pool load. This will at least be smaller codesize and can allow the VDUP to be folded into other instructions.


https://reviews.llvm.org/D103808

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/predicated-liveout-unknown-lanes.ll
  llvm/test/CodeGen/Thumb2/mve-fp16convertloops.ll
  llvm/test/CodeGen/Thumb2/mve-gather-scatter-tailpred.ll
  llvm/test/CodeGen/Thumb2/mve-pred-vctpvpsel.ll
  llvm/test/CodeGen/Thumb2/mve-shifts.ll
  llvm/test/CodeGen/Thumb2/mve-vmovimm.ll
  llvm/test/CodeGen/Thumb2/mve-vmvnimm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103808.350194.patch
Type: text/x-patch
Size: 39641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210607/4892cd90/attachment.bin>


More information about the llvm-commits mailing list