@@ -2805,9 +2805,8 @@ SDValue AMDGPUTargetLowering::LowerFLOGCommon(SDValue Op,
28052805 SDValue C = DAG.getConstantFP (IsLog10 ? c_log10 : c_log, DL, VT);
28062806 SDValue CC = DAG.getConstantFP (IsLog10 ? cc_log10 : cc_log, DL, VT);
28072807 // Our implementation of LOG is not contract safe because we generate
2808- // error-correcting summations based on the rounding error of the first
2809- // multiplication below, so contracting the multiply with the final add will
2810- // lead to inaccurate final results. Disable contraction for the expanded
2808+ // error-correcting summations for which contraction may lead to an increase
2809+ // in the error of the approximation. Disable contraction for the expanded
28112810 // instructions.
28122811 Flags.setAllowContract (false );
28132812 R = DAG.getNode (ISD::FMUL, DL, VT, Y, C, Flags);
@@ -2833,9 +2832,8 @@ SDValue AMDGPUTargetLowering::LowerFLOGCommon(SDValue Op,
28332832 SDValue YH = DAG.getNode (ISD::BITCAST, DL, MVT::f32 , YHInt);
28342833 SDValue YT = DAG.getNode (ISD::FSUB, DL, VT, Y, YH, Flags);
28352834 // Our implementation of LOG is not contract safe because we generate
2836- // error-correcting summations based on the rounding error of the first
2837- // multiplication below, so contracting the multiply with the final add will
2838- // lead to inaccurate final results. Disable contraction for the expanded
2835+ // error-correcting summations for which contraction may lead to an increase
2836+ // in the error of the approximation. Disable contraction for the expanded
28392837 // instructions.
28402838 Flags.setAllowContract (false );
28412839 SDValue YTCT = DAG.getNode (ISD::FMUL, DL, VT, YT, CT, Flags);
0 commit comments