Skip to content

Commit bfbbf0a

Browse files
committed
[LegalizeTypes] Remove SoftenFloat handling from ExpandIntRes_LLROUND_LLRINT and remove assert from the strict fp path.
These were both recently added. While the call to GetSoftenedFloat is a little more optimal, we don't do it in the expand for FP_TO_SINT/UINT so there's no real reason to do it here. This avoids a FIXME for strict fp.
1 parent 5a56d2a commit bfbbf0a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,9 +2629,6 @@ void DAGTypeLegalizer::ExpandIntRes_LLROUND_LLRINT(SDNode *N, SDValue &Lo,
26292629
EVT RetVT = N->getValueType(0);
26302630

26312631
if (N->isStrictFPOpcode()) {
2632-
// FIXME: Support softening for strict fp!
2633-
assert(getTypeAction(VT) != TargetLowering::TypeSoftenFloat &&
2634-
"Softening strict fp calls not supported yet!");
26352632
std::pair<SDValue, SDValue> Tmp = ExpandChainLibCall(LC, N, true);
26362633
SplitInteger(Tmp.first, Lo, Hi);
26372634
ReplaceValueWith(SDValue(N, 1), Tmp.second);
@@ -2640,12 +2637,6 @@ void DAGTypeLegalizer::ExpandIntRes_LLROUND_LLRINT(SDNode *N, SDValue &Lo,
26402637

26412638
TargetLowering::MakeLibCallOptions CallOptions;
26422639
CallOptions.setSExt(true);
2643-
2644-
if (getTypeAction(VT) == TargetLowering::TypeSoftenFloat) {
2645-
Op = GetSoftenedFloat(Op);
2646-
CallOptions.setTypeListBeforeSoften(VT, RetVT, true);
2647-
}
2648-
26492640
SplitInteger(TLI.makeLibCall(DAG, LC, RetVT, Op, CallOptions, dl).first,
26502641
Lo, Hi);
26512642
}

0 commit comments

Comments
 (0)