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