This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/17088] poor fortran optimisation at -O2/3
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Apr 2005 07:25:02 -0000
- Subject: [Bug rtl-optimization/17088] poor fortran optimisation at -O2/3
- References: <20040818204713.17088.jv244@cam.ac.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-07 07:24 -------
This seems to be fixed on the mainline at least for me:
gold:~>gfortran -O1 t.f90
gold:~>!./
./a.out ; ./a.out ; ./a.out
2.220446049250313E-016
1.62675300000000 0.990850000000000
2.220446049250313E-016
1.57976000000000 1.00884700000000
2.220446049250313E-016
1.64775000000000 0.999848000000000
gold:~>gfortran -O2 t.f90
gold:~>!./
./a.out ; ./a.out ; ./a.out
4.440892098500626E-016
1.49477200000000 0.722890000000000
4.440892098500626E-016
1.53276600000000 0.716892000000000
4.440892098500626E-016
1.53476700000000 0.707892000000000
gold:~>gfortran -O3 t.f90
gold:~>!./
./a.out ; ./a.out ; ./a.out
4.440892098500626E-016
1.51277000000000 0.784881000000000
4.440892098500626E-016
1.52476900000000 0.722890000000000
4.440892098500626E-016
1.54276600000000 0.710892000000000
Though MATMUL should be able to improved still.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17088