tree-ssa-math-opts.c
81.9 KB
-
re PR tree-optimization/56125 (-O2 -ffast-math generates bad code when dividing… · 0bfbca58
re PR tree-optimization/56125 (-O2 -ffast-math generates bad code when dividing a double by the square of another double.) PR tree-optimization/56125 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize pow(x,c) into sqrt(x) * powi(x, n/2) or 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when optimizing for size. Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an integer. * gcc.dg/pr56125.c: New test. From-SVN: r195507
Jakub Jelinek committed