Apply the patch from PR8958, which allows llc to get slightly
authorDan Gohman <gohman@apple.com>
Wed, 12 Jan 2011 23:56:26 +0000 (23:56 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 12 Jan 2011 23:56:26 +0000 (23:56 +0000)
further on the associated testcase before aborting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123346 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index d0d9e58546cfaa3cecdcaf2b2c582be0a432d072..eb697ba3e401c8b88c15b2210b096353da21dbd8 100644 (file)
@@ -1378,7 +1378,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
                                Result.getValueType(),
                                Result, DAG.getValueType(SrcVT));
         else
-          ValRes = DAG.getZeroExtendInReg(Result, dl, SrcVT);
+          ValRes = DAG.getZeroExtendInReg(Result, dl,
+                                          SrcVT.getVectorElementType());
         Tmp1 = LegalizeOp(ValRes);  // Relegalize new nodes.
         Tmp2 = LegalizeOp(Result.getValue(1));  // Relegalize new nodes.
         break;