This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize pow(x,0.0) = pow(1.0,y) = 1.0
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Roger Sayle <roger at www dot eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 21 Feb 2003 17:22:20 -0800
- Subject: Re: [PATCH] Optimize pow(x,0.0) = pow(1.0,y) = 1.0
- References: <Pine.LNX.4.44.0302202055390.24397-100000@www.eyesopen.com>
> The following patch implements the built-in constant folding optimizations
> that "pow(x,0.0) = 1.0" and "pow(1.0,y) = 1.0", even when x and/or y are
> NaN.
The patch is OK, except that it would be better if you didn't use
-ffast-math in the testcase. That change is pre-approved (assuming
the testcase still passes.)
--
- Geoffrey Keating <geoffk at geoffk dot org>