summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-12-20 05:28:06 +0000
committerCraig Topper <craig.topper@intel.com>2018-12-20 05:28:06 +0000
commitbd788ce5db2e6933c7f4d370cec4bdaa3a8e7c72 (patch)
treed576c35812f315ab942adcb0c5499136045437b8
parent978ba61536c2cdafa8454b7330c5d8e58d0d5048 (diff)
downloadbcm5719-llvm-bd788ce5db2e6933c7f4d370cec4bdaa3a8e7c72.tar.gz
bcm5719-llvm-bd788ce5db2e6933c7f4d370cec4bdaa3a8e7c72.zip
[DAGCombiner] Fix a place that was creating a SIGN_EXTEND with an extra operand.
llvm-svn: 349726
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index c4acd09f216..a027d2906c8 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud