From: Craig Topper Date: Sun, 13 Aug 2017 20:21:12 +0000 (+0000) Subject: [X86] Fix typo from r310794. Index = 0 should have been Index == 0. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bf914a2e218307b7d2c0d7db967b73f6a0aa303;p=llvm [X86] Fix typo from r310794. Index = 0 should have been Index == 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310801 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 04ee7121c7e..bed9ff58468 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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; }