Message ID | alpine.LNX.2.00.1106101416430.810@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Index: gcc/fold-const.c =================================================================== --- gcc/fold-const.c (revision 174891) +++ gcc/fold-const.c (working copy) @@ -10519,7 +10519,8 @@ fold_binary_loc (location_t loc, } /* Optimize x*x as pow(x,2.0), which is expanded as x*x. */ - if (optimize_function_for_speed_p (cfun) + if (!in_gimple_form + && optimize_function_for_speed_p (cfun) && operand_equal_p (arg0, arg1, 0)) { tree powfn = mathfn_built_in (type, BUILT_IN_POW);