Skip to content

Commit 30e6bb7

Browse files
committed
Fix wrong dead code from SoftPromoteHalfRes_UnaryOp
1 parent 102edae commit 30e6bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3626,7 +3626,7 @@ SDValue DAGTypeLegalizer::SoftPromoteHalfRes_UnaryOp(SDNode *N) {
36263626
// Promote to the larger FP type.
36273627
Op = DAG.getNode(GetPromotionOpcode(OVT, NVT), dl, NVT, Op);
36283628

3629-
SDValue Res = DAG.getNode(N->getOpcode(), dl, NVT, Op, N->getOperand(1));
3629+
SDValue Res = DAG.getNode(N->getOpcode(), dl, NVT, Op);
36303630

36313631
// Convert back to FP16 as an integer.
36323632
return DAG.getNode(GetPromotionOpcode(NVT, OVT), dl, MVT::i16, Res);

0 commit comments

Comments
 (0)