forked from OSchip/llvm-project
[X86] Fix typo from r310794. Index = 0 should have been Index == 0.
llvm-svn: 310801
This commit is contained in:
parent
c4edc0705c
commit
5b59176abb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue