aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@gcc.gnu.org>2013-01-28 15:43:03 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-01-28 15:43:03 +0100
commit0bfbca5868fae1912db33ae4ab341d6e08bd68b4 (patch)
tree2a2bfc3d290925073d4af913ae01b69cfbf1aa53 /gcc/tree-loop-distribution.c
parentdd8b9ddea2288c96124367bf66ce060eb1049872 (diff)
downloadgcc-0bfbca5868fae1912db33ae4ab341d6e08bd68b4.zip
gcc-0bfbca5868fae1912db33ae4ab341d6e08bd68b4.tar.gz
gcc-0bfbca5868fae1912db33ae4ab341d6e08bd68b4.tar.bz2
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
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions