[Bug tree-optimization/24964] Does not optimise abs(x)**2 to x**2

2014-10-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24964 Bug 24964 depends on bug 15459, which changed state. Bug 15459 Summary: [meta-bug] there should be a tree combiner like the rtl one https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15459 What|Removed |Added

[Bug tree-optimization/24964] Does not optimise abs(x)**2 to x**2

2006-05-29 Thread sayle at gcc dot gnu dot org
--- Comment #2 from sayle at gcc dot gnu dot org 2006-05-29 16:22 --- Subject: Bug 24964 Author: sayle Date: Mon May 29 16:22:05 2006 New Revision: 114206 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=114206 Log: PR tree-optimization/24964 * simplify-rtx.c

[Bug tree-optimization/24964] Does not optimise abs(x)**2 to x**2

2006-05-29 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-05-29 21:23 --- Fixed in 4.2.0 by a RTL patch. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/24964] Does not optimise abs(x)**2 to x**2

2005-11-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-21 00:40 --- This comes down to the tree-combiner. Take the following C functions: double fabs(double); double f(double a) { return fabs(a)*fabs(a); } double f1(double *a) { return fabs(*a)*fabs(*a); } double f2(double *a)