]> granicus.if.org Git - llvm/commitdiff
[DAGCombiner] Fix a place that was creating a SIGN_EXTEND with an extra operand.
authorCraig Topper <craig.topper@intel.com>
Thu, 20 Dec 2018 05:28:06 +0000 (05:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 20 Dec 2018 05:28:06 +0000 (05:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349726 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index c4acd09f21610aed29f09a46d91be1dde280ab46..a027d2906c8324fae5c2404cecc20440fc77187c 100644 (file)
@@ -9422,7 +9422,7 @@ SDValue DAGCombiner::visitSIGN_EXTEND_INREG(SDNode *N) {
     SDValue N00 = N0.getOperand(0);
     if (N00.getScalarValueSizeInBits() <= EVTBits &&
         (!LegalOperations || TLI.isOperationLegal(ISD::SIGN_EXTEND, VT)))
-      return DAG.getNode(ISD::SIGN_EXTEND, SDLoc(N), VT, N00, N1);
+      return DAG.getNode(ISD::SIGN_EXTEND, SDLoc(N), VT, N00);
   }
 
   // fold (sext_in_reg (*_extend_vector_inreg x)) -> (sext_vector_inreg x)