commit | 1e1c5f37c3a9b27c71d7d3a9e22f819200fb38b4 | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nrotem@apple.com> | Mon Dec 24 10:04:03 2012 +0000 |
committer | Nadav Rotem <nrotem@apple.com> | Mon Dec 24 10:04:03 2012 +0000 |
tree | 05b12dd5e0e6206a5bd86419e5ad86dd614f0ea6 | |
parent | 94d7ab7da4601d0caa75e7cffcf542214fb830a8 [diff] [blame] |
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
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::getShuffleCost(ShuffleKind Kind, - Type *Tp) const { + Type *Tp, + int Index) const { return 1; }