[X86] Fix typo from r310794. Index = 0 should have been Index == 0.

llvm-svn: 310801
This commit is contained in:
Craig Topper 2017-08-13 20:21:12 +00:00
parent c4edc0705c
commit 5b59176abb
1 changed files with 2 additions and 2 deletions

View File

@ -4582,8 +4582,8 @@ bool X86TargetLowering::isExtractSubvectorCheap(EVT ResVT, EVT SrcVT,
// Mask vectors support all subregister combinations and operations that
// extract half of vector.
if (ResVT.getVectorElementType() == MVT::i1)
return Index = 0 || ((ResVT.getSizeInBits() == SrcVT.getSizeInBits() * 2) &&
(Index == ResVT.getVectorNumElements()));
return Index == 0 || ((ResVT.getSizeInBits() == SrcVT.getSizeInBits()*2) &&
(Index == ResVT.getVectorNumElements()));
return (Index % ResVT.getVectorNumElements()) == 0;
}