From: Simon Pilgrim Date: Wed, 10 Jul 2019 16:22:31 +0000 (+0000) Subject: [X86] EltsFromConsecutiveLoads - remove duplicate check for element size. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29c8649d15ff6e6d72407283767503a1bfdd0e49;p=llvm [X86] EltsFromConsecutiveLoads - remove duplicate check for element size. NFCI. We've already checked that each element is the correct contributory size for VT when we inspect the elements for Undef/Zero/Load. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365656 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index c5f1234fe92..ad6246a7ca2 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -7614,12 +7614,6 @@ static SDValue EltsFromConsecutiveLoads(EVT VT, ArrayRef Elts, if (FirstLoadedElt == 0 && (LastLoadedElt == (int)(NumElems - 1) || IsDereferenceable) && (IsConsecutiveLoad || IsConsecutiveLoadWithZeros)) { - EVT EltVT = LDBase->getValueType(0); - // Ensure that the input vector size for the merged loads matches the - // cumulative size of the input elements. - if (VT.getSizeInBits() != EltVT.getSizeInBits() * NumElems) - return SDValue(); - if (isAfterLegalize && !TLI.isOperationLegal(ISD::LOAD, VT)) return SDValue();