diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-01-03 02:34:09 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-01-03 02:34:09 +0000 |
commit | 95de3f30188a4eb56908e423ac16c2cfd75fb0b0 (patch) | |
tree | d3601fb6fcaa3bd2dbd130cee9657bd2b3e6f5e9 /llvm/lib/Target/TargetTransformImpl.cpp | |
parent | cf1589f74950be0d49543224e89087f37012036c (diff) | |
download | bcm5719-llvm-95de3f30188a4eb56908e423ac16c2cfd75fb0b0.tar.gz bcm5719-llvm-95de3f30188a4eb56908e423ac16c2cfd75fb0b0.zip |
Add a subtype parameter to VTTI::getShuffleCost
In order to cost subvector insertion and extraction, we need to know
the type of the subvector being extracted.
No functionality change.
llvm-svn: 171453
Diffstat (limited to 'llvm/lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | llvm/lib/Target/TargetTransformImpl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetTransformImpl.cpp b/llvm/lib/Target/TargetTransformImpl.cpp index d7c221ee1fd..f8c588934fe 100644 --- a/llvm/lib/Target/TargetTransformImpl.cpp +++ b/llvm/lib/Target/TargetTransformImpl.cpp @@ -209,8 +209,7 @@ unsigned VectorTargetTransformImpl::getArithmeticInstrCost(unsigned Opcode, } unsigned VectorTargetTransformImpl::getShuffleCost(ShuffleKind Kind, - Type *Tp, - int Index) const { + Type *Tp, int Index, Type *SubTp) const { return 1; } |