This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Yet more constant folding of pow.
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at www dot eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Apr 2003 15:02:48 -0700
- Subject: Re: [PATCH] Yet more constant folding of pow.
- References: <Pine.LNX.4.44.0304051324290.13787-100000@www.eyesopen.com>
On Sat, Apr 05, 2003 at 01:50:32PM -0700, Roger Sayle wrote:
> * fold-const.c (fold): Use "fold" following build in more places.
> Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
> pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
>
> * gcc.dg/builtins-11.c: New test case.
Ok.
r~