summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetTransformImpl.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-24 10:04:03 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-24 10:04:03 +0000
commit3ee6b10dd4ff2c4b60b46aa5564257e57a0d7a3c (patch)
tree6de4b3eb461c0ca545a65126a84f401ccb02fe61 /llvm/lib/Target/TargetTransformImpl.cpp
parent517afbff01608dee1013b1e0f54e145686309573 (diff)
downloadbcm5719-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.cpp3
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;
}
OpenPOWER on IntegriCloud