Index: lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp =================================================================== --- lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -458,8 +458,10 @@ // hard-float FP_EXTEND rather than FP16_TO_FP. if (Op.getValueType() == MVT::f16 && N->getValueType(0) != MVT::f32) { Op = DAG.getNode(ISD::FP_EXTEND, SDLoc(N), MVT::f32, Op); - if (getTypeAction(MVT::f32) == TargetLowering::TypeSoftenFloat) + if (getTypeAction(MVT::f32) == TargetLowering::TypeSoftenFloat) { SoftenFloatResult(Op.getNode(), 0); + Op.getNode()->setNodeId(Processed); + } } if (getTypeAction(Op.getValueType()) == TargetLowering::TypePromoteFloat) {