Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 6923965

Browse files
authored
Merge pull request #133 from jethrogb/rust-bug-56942
Cherry pick bug fix
2 parents 95185c8 + f4728ed commit 6923965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/X86/X86TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ int X86TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
874874

875875
// Subvector extractions are free if they start at beginning of the
876876
// vector.
877-
if (Kind == TTI::SK_ExtractSubvector &&
877+
if (Kind == TTI::SK_ExtractSubvector && LT.second.isVector() &&
878878
((Index % LT.second.getVectorNumElements()) == 0))
879879
return 0;
880880

0 commit comments

Comments
 (0)