This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Optimize pow(x,0.0) = pow(1.0,y) = 1.0


> 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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]