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: New update to optabs.c for optimizing C op R expressions.


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)


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