[llvm] 8787726 - [LegalizeTypes] Remove incomplete StrictFP support from SplitVecRes_UnaryOp. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 15:44:18 PST 2022
Author: Craig Topper
Date: 2022-03-01T15:43:57-08:00
New Revision: 878772660960f3bcf56bb6d0d6c998841c8af462
URL: https://github.com/llvm/llvm-project/commit/878772660960f3bcf56bb6d0d6c998841c8af462
DIFF: https://github.com/llvm/llvm-project/commit/878772660960f3bcf56bb6d0d6c998841c8af462.diff
LOG: [LegalizeTypes] Remove incomplete StrictFP support from SplitVecRes_UnaryOp. NFC
There is no handling of Chain operands in this function so it can't
work. There's a separate splitting function for all strict fp nodes.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 97acead64c409..37c5af0a69f6a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -2063,12 +2063,11 @@ void DAGTypeLegalizer::SplitVecRes_UnaryOp(SDNode *N, SDValue &Lo,
// If the input also splits, handle it directly for a compile time speedup.
// Otherwise split it by hand.
- unsigned OpNo = N->isStrictFPOpcode() ? 1 : 0;
- EVT InVT = N->getOperand(OpNo).getValueType();
+ EVT InVT = N->getOperand(0).getValueType();
if (getTypeAction(InVT) == TargetLowering::TypeSplitVector)
- GetSplitVector(N->getOperand(OpNo), Lo, Hi);
+ GetSplitVector(N->getOperand(0), Lo, Hi);
else
- std::tie(Lo, Hi) = DAG.SplitVectorOperand(N, OpNo);
+ std::tie(Lo, Hi) = DAG.SplitVectorOperand(N, 0);
if (N->getOpcode() == ISD::FP_ROUND) {
Lo = DAG.getNode(N->getOpcode(), dl, LoVT, Lo, N->getOperand(1),
More information about the llvm-commits
mailing list