[PATCH] D73021: [ARM] Basic gather scatter cost model

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 02:53:36 PST 2020


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

This is a very basic MVE gather/scatter cost model, based roughly on the code that we will currently produce. It does not handle truncating scatters or extending loads correctly yet, as it is difficult to tell that they are going to be correctly extended/truncated from the limited information in the cost function.

This can be improved as we extend support for these in the future.

Based on code originally written by David Sherwood.


https://reviews.llvm.org/D73021

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.h
  llvm/test/Analysis/CostModel/ARM/mve-gather-scatter-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73021.239044.patch
Type: text/x-patch
Size: 54699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200120/8635ff39/attachment.bin>


More information about the llvm-commits mailing list