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 | 3ee6b10dd4ff2c4b60b46aa5564257e57a0d7a3c (patch) | |
tree | 6de4b3eb461c0ca545a65126a84f401ccb02fe61 /llvm/lib/Target/TargetTransformImpl.cpp | |
parent | 517afbff01608dee1013b1e0f54e145686309573 (diff) | |
download | bcm5719-llvm-3ee6b10dd4ff2c4b60b46aa5564257e57a0d7a3c.tar.gz bcm5719-llvm-3ee6b10dd4ff2c4b60b46aa5564257e57a0d7a3c.zip |
CostModel: We have API for checking the costs of known shuffles. This patch adds
support for the insert-subvector and extract-subvector kinds.
llvm-svn: 171027
Diffstat (limited to 'llvm/lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | llvm/lib/Target/TargetTransformImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetTransformImpl.cpp b/llvm/lib/Target/TargetTransformImpl.cpp index a320e16c98f..235a8fc76a6 100644 --- a/llvm/lib/Target/TargetTransformImpl.cpp +++ b/llvm/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; } |