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/Target/TargetTransformImpl.cpp | |
parent | 94d7ab7da4601d0caa75e7cffcf542214fb830a8 (diff) |
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/Target/TargetTransformImpl.cpp')
-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 a320e16c98..235a8fc76a 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; } |