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 | 82860f63e1678077fe665c21179b9df47fd313bb (patch) | |
tree | 771f722fcf336a1b1a88c1090fb01f39c86ef371 /lib/Target/TargetTransformImpl.cpp | |
parent | e5ab1bee8c1b4ae58bc108c28194af56379e55ac (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | lib/Target/TargetTransformImpl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/TargetTransformImpl.cpp b/lib/Target/TargetTransformImpl.cpp index d7c221ee1f..f8c588934f 100644 --- a/lib/Target/TargetTransformImpl.cpp +++ b/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; } |