This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: New update to optabs.c for optimizing C op R expressions.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 29 Jun 2002 18:24:15 +0200
- Subject: Re: New update to optabs.c for optimizing C op R expressions.
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3D1DDDE3.BA4EA9E7@moene.indiv.nluug.nl>
Toon Moene wrote:
> The attached patch shows at least some optimizing behaviour when
> presented with the following source code:
>
> COMPLEX FUNCTION CF(C, R)
> COMPLEX C
> REAL R
> CF = C * R
> RETURN
> END
>
> Please approve.
>
> [ Normally, four multiplications have to be performed but with this
> patch (and the -ffast-math option) those have been reduced to two. ]
This report is not as complete as I normally make it:
Bootstrapped on i686-pc-linux-gnu, C and Fortran, make check Fortran
only, and a check of LAPACK getting the same results as previously -
using -ffasth-math.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)