From: Craig Topper Date: Tue, 24 Jan 2017 02:43:54 +0000 (+0000) Subject: [X86] Remove Undef handling from extractSubVector. This is now handled inside getNode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c144a2489f654c7871cd890fece4f563d5e086e0;p=llvm [X86] Remove Undef handling from extractSubVector. This is now handled inside getNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292877 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 2b58c02afea..418cda63d2b 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -4844,10 +4844,6 @@ static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, EVT ResultVT = EVT::getVectorVT(*DAG.getContext(), ElVT, VT.getVectorNumElements()/Factor); - // Extract from UNDEF is UNDEF. - if (Vec.isUndef()) - return DAG.getUNDEF(ResultVT); - // Extract the relevant vectorWidth bits. Generate an EXTRACT_SUBVECTOR unsigned ElemsPerChunk = vectorWidth / ElVT.getSizeInBits(); assert(isPowerOf2_32(ElemsPerChunk) && "Elements per chunk not power of 2");