[PATCH] D15677: Cost for Gather and Scatter operations.

Elena Demikhovsky via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 20 02:53:58 PST 2015


delena created this revision.
delena added reviewers: Ayal, gilr, hfinkel, nadav.
delena added a subscriber: llvm-commits.
delena set the repository for this revision to rL LLVM.

Implemented cost calculation for Gather/Scatter operations on X86.
Added a common interface.

Gather / scatter are expensive instructions on the current AVX-512 targets.
I calculate 2 scenarios - using GS machine instructions and full scalarization. The best cost is returned.
In order to give the right cost for intrinsic I should use argument values, argument types are not enough.
I added interface for intrinsic cost calculation based on values.
Added tests for intrinsics.


Repository:
  rL LLVM

http://reviews.llvm.org/D15677

Files:
  ../include/llvm/Analysis/TargetTransformInfo.h
  ../include/llvm/Analysis/TargetTransformInfoImpl.h
  ../include/llvm/CodeGen/BasicTTIImpl.h
  ../lib/Analysis/CostModel.cpp
  ../lib/Analysis/TargetTransformInfo.cpp
  ../lib/Target/X86/X86TargetTransformInfo.cpp
  ../lib/Target/X86/X86TargetTransformInfo.h
  ../test/Analysis/CostModel/X86/masked-intrinsic-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15677.43320.patch
Type: text/x-patch
Size: 25276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151220/5e07fd11/attachment.bin>


More information about the llvm-commits mailing list