[PATCH] D93030: [AArch64][SVE]Add cost model for masked gather and scatter for scalable vector.

Caroline via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 10 05:45:16 PST 2020


CarolineConcatto created this revision.
Herald added subscribers: NickHung, psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
CarolineConcatto requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

A new TTI interface has been added 'Optional <unsigned>getMaxVScale' that
returns the maximum vscale for a given target.
When known getMaxVScale is used to compute the cost of masked gather scatter
for scalable vector.

Depends on D92094 <https://reviews.llvm.org/D92094>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93030

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
  llvm/test/Analysis/CostModel/AArch64/sve-getIntrinsicInstrCost-gather.ll
  llvm/test/Analysis/CostModel/AArch64/sve-getIntrinsicInstrCost-scatter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93030.310864.patch
Type: text/x-patch
Size: 9866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201210/b24ad5ea/attachment.bin>


More information about the llvm-commits mailing list