From: Craig Topper Date: Thu, 20 Dec 2018 05:28:06 +0000 (+0000) Subject: [DAGCombiner] Fix a place that was creating a SIGN_EXTEND with an extra operand. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f41808d09e5ce372837846c0a63712db3746533b;p=llvm [DAGCombiner] Fix a place that was creating a SIGN_EXTEND with an extra operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349726 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index c4acd09f216..a027d2906c8 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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)