diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-11-09 18:30:59 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-11-09 18:30:59 +0000 |
commit | 26e1c887f58efc8e37e7e7b256582719250b668d (patch) | |
tree | 235752f55e5d6b8432f77da4a95cec177fc0231e | |
parent | 26299e2af103efb567369222d56998b4943e19cd (diff) | |
download | bcm5719-llvm-26e1c887f58efc8e37e7e7b256582719250b668d.tar.gz bcm5719-llvm-26e1c887f58efc8e37e7e7b256582719250b668d.zip |
[TTI] Flip vector types in getShuffleCost SK_ExtractSubvector call
For SK_ExtractSubvector, the default 'Ty' type is the source operand type and 'SubTy' is the destination subvector type
I got this the wrong way around when I added rL346510
llvm-svn: 346534
-rw-r--r-- | llvm/lib/Analysis/TargetTransformInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp index a6a1a872b65..eecc898fb5f 100644 --- a/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -1114,7 +1114,7 @@ int TargetTransformInfo::getInstructionThroughput(const Instruction *I) const { // TODO: Identify and add costs for insert subvector, etc. int SubIndex; if (Shuffle->isExtractSubvectorMask(SubIndex)) - return TTIImpl->getShuffleCost(SK_ExtractSubvector, Ty, SubIndex, SrcTy); + return TTIImpl->getShuffleCost(SK_ExtractSubvector, SrcTy, SubIndex, Ty); if (Shuffle->changesLength()) return -1; |