1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

[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 377502c5b1
commit 929f9894d5

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;
}