@@ -2804,10 +2804,9 @@ SDValue AMDGPUTargetLowering::LowerFLOGCommon(SDValue Op,
28042804
28052805 SDValue C = DAG.getConstantFP (IsLog10 ? c_log10 : c_log, DL, VT);
28062806 SDValue CC = DAG.getConstantFP (IsLog10 ? cc_log10 : cc_log, DL, VT);
2807- // Our implementation of LOG is not contract safe because we generate
2808- // error-correcting summations for which contraction may lead to an increase
2809- // in the error of the approximation. Disable contraction for the expanded
2810- // instructions.
2807+ // Our implementation of LOG is not contract safe because we add correction
2808+ // terms for which contraction may lead to an increase in the error of the
2809+ // approximation. Disable contraction for the expanded instructions.
28112810 Flags.setAllowContract (false );
28122811 R = DAG.getNode (ISD::FMUL, DL, VT, Y, C, Flags);
28132812 SDValue NegR = DAG.getNode (ISD::FNEG, DL, VT, R, Flags);
@@ -2831,10 +2830,9 @@ SDValue AMDGPUTargetLowering::LowerFLOGCommon(SDValue Op,
28312830 SDValue YHInt = DAG.getNode (ISD::AND, DL, MVT::i32 , YAsInt, MaskConst);
28322831 SDValue YH = DAG.getNode (ISD::BITCAST, DL, MVT::f32 , YHInt);
28332832 SDValue YT = DAG.getNode (ISD::FSUB, DL, VT, Y, YH, Flags);
2834- // Our implementation of LOG is not contract safe because we generate
2835- // error-correcting summations for which contraction may lead to an increase
2836- // in the error of the approximation. Disable contraction for the expanded
2837- // instructions.
2833+ // Our implementation of LOG is not contract safe because we add correction
2834+ // terms for which contraction may lead to an increase in the error of the
2835+ // approximation. Disable contraction for the expanded instructions.
28382836 Flags.setAllowContract (false );
28392837 SDValue YTCT = DAG.getNode (ISD::FMUL, DL, VT, YT, CT, Flags);
28402838 SDValue Mad0 = getMad (DAG, DL, VT, YH, CT, YTCT, Flags);
0 commit comments