[llvm] r349726 - [DAGCombiner] Fix a place that was creating a SIGN_EXTEND with an extra operand.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 19 21:28:07 PST 2018
Author: ctopper
Date: Wed Dec 19 21:28:06 2018
New Revision: 349726
URL: http://llvm.org/viewvc/llvm-project?rev=349726&view=rev
Log:
[DAGCombiner] Fix a place that was creating a SIGN_EXTEND with an extra operand.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=349726&r1=349725&r2=349726&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Dec 19 21:28:06 2018
@@ -9422,7 +9422,7 @@ SDValue DAGCombiner::visitSIGN_EXTEND_IN
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)
More information about the llvm-commits
mailing list