Skip to content

Commit 8d77a0f

Browse files
committed
PromoteFloatRes_AssertNoFPClass: conservative stripping
1 parent 5ac47f6 commit 8d77a0f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,11 +3016,9 @@ SDValue DAGTypeLegalizer::PromoteFloatRes_UnaryOp(SDNode *N) {
30163016
// operand have PromoteFloat type action. Construct a new SDNode with the
30173017
// promoted float value of the old operand.
30183018
SDValue DAGTypeLegalizer::PromoteFloatRes_AssertNoFPClass(SDNode *N) {
3019-
EVT VT = N->getValueType(0);
3020-
EVT NVT = TLI.getTypeToTransformTo(*DAG.getContext(), VT);
3021-
SDValue Op = GetPromotedFloat(N->getOperand(0));
3022-
return DAG.getNode(N->getOpcode(), SDLoc(N), NVT, Op, N->getOperand(1));
3019+
return GetPromotedFloat(N->getOperand(0));
30233020
}
3021+
30243022
// Binary operations where the result and both operands have PromoteFloat type
30253023
// action. Construct a new SDNode with the promoted float values of the old
30263024
// operands.

0 commit comments

Comments
 (0)