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]

[RFApproval, trunk] Optimization of Complex OP Real.


L.S.,

Several times in the past year I've been asked when g77 would support
the optimization that eliminates the superfluous instructions that
result from adding, multiplying by or dividing zero when Complex OP Real
deals with its imaginary part.

This patch is a first shot at this optimization [obviously, it can only
be applied under "unsafe-math" assumptions].  Passes make bootstrap (C
and Fortran only), make check and make install on i686-pc-linux-gnu.  It
also passes a comparison with mainline gcc/g77 (using -O2 -ffast-math)
compiling and checking LAPACK.

OK to install on mainline ?

Thanks,

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