This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, committed] PR 42694: Optimize pow (x, 0.25), pow (x, 0.75), and pow (1./6.)
- From: Michael Matz <matz at suse dot de>
- To: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dje dot gcc at gmail dot com
- Date: Wed, 14 Apr 2010 17:30:06 +0200 (CEST)
- Subject: Re: [PATCH, committed] PR 42694: Optimize pow (x, 0.25), pow (x, 0.75), and pow (1./6.)
- References: <20100414151104.GA7296@hungry-tiger.westford.ibm.com>
Hi,
On Wed, 14 Apr 2010, Michael Meissner wrote:
> I committed the following patch for 42694 that adds some optimizations
> for pow, particularly pow (x, 0.75) that shows up in some Fortran code
> (bwaves).
>
> The patch was discussed and approved in January when stage1 opened up:
> http://gcc.gnu.org/ml/gcc-patches/2010-01/msg01288.html
Have you considered to implement the transformation into the fold_builtin
phase, instead of into the expand_builtin phase? That way the various
sqrt() calls would be exposed to the tree optimizers already which might
have some advantages.
Ciao,
Michael.