mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user