[llvm-commits] [llvm] r63217 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
Mon P Wang
wangmp at apple.com
Wed Jan 28 10:53:39 PST 2009
Author: wangmp
Date: Wed Jan 28 12:53:39 2009
New Revision: 63217
URL: http://llvm.org/viewvc/llvm-project?rev=63217&view=rev
Log:
Fixed extract element when the result needs to be promoted and the input widened.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp?rev=63217&r1=63216&r2=63217&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp Wed Jan 28 12:53:39 2009
@@ -292,6 +292,8 @@
SDValue DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT(SDNode *N) {
MVT OldVT = N->getValueType(0);
SDValue OldVec = N->getOperand(0);
+ if (getTypeAction(OldVec.getValueType()) == WidenVector)
+ OldVec = GetWidenedVector(N->getOperand(0));
unsigned OldElts = OldVec.getValueType().getVectorNumElements();
if (OldElts == 1) {
More information about the llvm-commits
mailing list