diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-24 10:04:03 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-24 10:04:03 +0000 |
commit | 1e1c5f37c3a9b27c71d7d3a9e22f819200fb38b4 (patch) | |
tree | 05b12dd5e0e6206a5bd86419e5ad86dd614f0ea6 /lib | |
parent | 94d7ab7da4601d0caa75e7cffcf542214fb830a8 (diff) | |
download | external_llvm-1e1c5f37c3a9b27c71d7d3a9e22f819200fb38b4.zip external_llvm-1e1c5f37c3a9b27c71d7d3a9e22f819200fb38b4.tar.gz external_llvm-1e1c5f37c3a9b27c71d7d3a9e22f819200fb38b4.tar.bz2 |
CostModel: We have API for checking the costs of known shuffles. This patch adds
support for the insert-subvector and extract-subvector kinds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/TargetTransformImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/TargetTransformImpl.cpp b/lib/Target/TargetTransformImpl.cpp index a320e16..235a8fc 100644 --- a/lib/Target/TargetTransformImpl.cpp +++ b/lib/Target/TargetTransformImpl.cpp @@ -209,7 +209,8 @@ unsigned VectorTargetTransformImpl::getArithmeticInstrCost(unsigned Opcode, } unsigned VectorTargetTransformImpl::getShuffleCost(ShuffleKind Kind, - Type *Tp) const { + Type *Tp, + int Index) const { return 1; } |