This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFApproval, trunk] Optimization of Complex OP Real.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 09 May 2002 20:43:26 +0200
- Subject: [RFApproval, trunk] Optimization of Complex OP Real.
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
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)