mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
[CostModel][X86] SK_ExtractSubvector costs must only be tested for vector types (PR39615)
llvm-svn: 346589
This commit is contained in:
parent
7920baefd7
commit
c33f6ba40d
@ -874,7 +874,7 @@ int X86TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
|
||||
|
||||
// Subvector extractions are free if they start at beginning of the
|
||||
// vector.
|
||||
if (Kind == TTI::SK_ExtractSubvector &&
|
||||
if (Kind == TTI::SK_ExtractSubvector && LT.second.isVector() &&
|
||||
((Index % LT.second.getVectorNumElements()) == 0))
|
||||
return 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user