[llvm] r292877 - [X86] Remove Undef handling from extractSubVector. This is now handled inside getNode.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 18:43:54 PST 2017
Author: ctopper
Date: Mon Jan 23 20:43:54 2017
New Revision: 292877
URL: http://llvm.org/viewvc/llvm-project?rev=292877&view=rev
Log:
[X86] Remove Undef handling from extractSubVector. This is now handled inside getNode.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=292877&r1=292876&r2=292877&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Jan 23 20:43:54 2017
@@ -4844,10 +4844,6 @@ static SDValue extractSubVector(SDValue
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");
More information about the llvm-commits
mailing list