public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/17088] New: poor optimisation at -O2/3 and -fnew-ra
@ 2004-08-18 20:47 jv244 at cam dot ac dot uk
  2004-08-18 20:48 ` [Bug rtl-optimization/17088] " jv244 at cam dot ac dot uk
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: jv244 at cam dot ac dot uk @ 2004-08-18 20:47 UTC (permalink / raw)
  To: gcc-bugs

GNU F95 version 3.5.0 20040818 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.5.0 20040818 (experimental).

the attached program (generated code to perform small matrix multiply) 
illustrates interesting behaviour. The third number printed is the timing of 
the MULT subroutine and is the one of interest (the other times the MATMUL 
built-in and the first measures the numerical error).

ifc -O2 test.f90               : 0.38 ! reference
gfortran -O1 test.f90          : 0.26 ! nice, faster than intel
gfortran -O2 test.f90          : 0.50 ! 2x slower than -O1
gfortran -O3 test.f90          : 0.50 ! idem
gfortran -O2 -fnew-ra test.f90 : 7.78 ! 30x slower than -O1

I have no idea what the magical switch would be to good code at e.g. -O2

-- 
           Summary: poor optimisation at -O2/3 and -fnew-ra
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17088


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-04-07  7:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-18 20:47 [Bug rtl-optimization/17088] New: poor optimisation at -O2/3 and -fnew-ra jv244 at cam dot ac dot uk
2004-08-18 20:48 ` [Bug rtl-optimization/17088] " jv244 at cam dot ac dot uk
2004-08-19 19:00 ` [Bug rtl-optimization/17088] [new-ra] " pinskia at gcc dot gnu dot org
2004-08-19 19:01 ` pinskia at gcc dot gnu dot org
2004-08-19 19:27 ` jv244 at cam dot ac dot uk
2004-08-19 19:29 ` [Bug rtl-optimization/17088] " pinskia at gcc dot gnu dot org
2005-01-03 12:09 ` [Bug rtl-optimization/17088] [new-ra] " steven at gcc dot gnu dot org
2005-01-03 12:09 ` steven at gcc dot gnu dot org
2005-01-03 12:20 ` [Bug rtl-optimization/17088] poor fortran optimisation at -O2/3 steven at gcc dot gnu dot org
2005-01-06 21:30 ` jv244 at cam dot ac dot uk
2005-01-06 21:39 ` pinskia at gcc dot gnu dot org
2005-01-17 15:33 ` pinskia at gcc dot gnu dot org
2005-04-07  7:25 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).