[llvm] cb6fc4b - [LegalizeIntegerTypes] Use GetExpandedInteger instead of SplitInteger in ExpandIntRes_XMULO.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 23 23:59:21 PST 2021
Author: Craig Topper
Date: 2021-02-23T23:53:45-08:00
New Revision: cb6fc4b0a35402a946e17b101ecd5cd0edd8c602
URL: https://github.com/llvm/llvm-project/commit/cb6fc4b0a35402a946e17b101ecd5cd0edd8c602
DIFF: https://github.com/llvm/llvm-project/commit/cb6fc4b0a35402a946e17b101ecd5cd0edd8c602.diff
LOG: [LegalizeIntegerTypes] Use GetExpandedInteger instead of SplitInteger in ExpandIntRes_XMULO.
We know the input is going to be expanded as well, so we should
just ask for the already expanded operands. Otherwise we create
nodes that are just going to need to be legalized.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
index 962ae6733fe2..831628959acc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
@@ -3940,10 +3940,10 @@ void DAGTypeLegalizer::ExpandIntRes_XMULO(SDNode *N,
// %res = { %5.0, %0 || %1.1 || %2.1 || %5.1 }
SDValue LHS = N->getOperand(0), RHS = N->getOperand(1);
SDValue LHSHigh, LHSLow, RHSHigh, RHSLow;
- SplitInteger(LHS, LHSLow, LHSHigh);
- SplitInteger(RHS, RHSLow, RHSHigh);
- EVT HalfVT = LHSLow.getValueType()
- , BitVT = N->getValueType(1);
+ GetExpandedInteger(LHS, LHSLow, LHSHigh);
+ GetExpandedInteger(RHS, RHSLow, RHSHigh);
+ EVT HalfVT = LHSLow.getValueType();
+ EVT BitVT = N->getValueType(1);
SDVTList VTHalfMulO = DAG.getVTList(HalfVT, BitVT);
SDVTList VTFullAddO = DAG.getVTList(VT, BitVT);
More information about the llvm-commits
mailing list