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

Cherry pick bug fix #133

Merged
merged 1 commit into from
Dec 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Target/X86/X86TargetTransformInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down