diff options
author | Craig Topper <craig.topper@intel.com> | 2018-12-20 05:28:06 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-12-20 05:28:06 +0000 |
commit | bd788ce5db2e6933c7f4d370cec4bdaa3a8e7c72 (patch) | |
tree | d576c35812f315ab942adcb0c5499136045437b8 /llvm/lib/CodeGen/SelectionDAG | |
parent | 978ba61536c2cdafa8454b7330c5d8e58d0d5048 (diff) | |
download | bcm5719-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
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
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) |