public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14741] New: missing transformations lead to poorly optimized code
@ 2004-03-26 12:17 jv244 at cam dot ac dot uk
  2005-01-18 11:35 ` [Bug tree-optimization/14741] " rakdver at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: jv244 at cam dot ac dot uk @ 2004-03-26 12:17 UTC (permalink / raw)
  To: gcc-bugs

I think this testcase is worth a PR so that it might be solved one day.

as shown and discussed in :
http://gcc.gnu.org/ml/gcc/2004-03/msg01457.html
and related messages gfortran is about 10 times slower than ifc (or xlf) on the
code  below, and no compiler options seem to be able to change this (this seems
not tree-ssa specific).

INTEGER, PARAMETER :: N=1024
REAL*8 :: A(N,N), B(N,N), C(N,N)
REAL*8 :: t1,t2
A=0.1D0
B=0.1D0
C=0.0D0
CALL cpu_time(t1)
CALL mult(A,B,C,N)
CALL cpu_time(t2)
write(6,*) t2-t1,C(1,1)
END

SUBROUTINE mult(A,B,C,N)
REAL*8 :: A(N,N), B(N,N), C(N,N)
INTEGER :: I,J,K,N
DO J=1,N
DO I=1,N
DO K=1,N
  C(I,J)=C(I,J)+A(I,K)*B(K,J)
ENDDO
ENDDO
ENDDO
END

-- 
           Summary: missing transformations lead to poorly optimized code
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: 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=14741


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

end of thread, other threads:[~2009-09-29 18:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14741-6642@http.gcc.gnu.org/bugzilla/>
2005-10-07 21:21 ` [Bug tree-optimization/14741] missing transformations lead to poorly optimized code steven at gcc dot gnu dot org
2007-07-03 18:10 ` jv244 at cam dot ac dot uk
2009-09-29 18:59 ` jv244 at cam dot ac dot uk
2004-03-26 12:17 [Bug optimization/14741] New: " jv244 at cam dot ac dot uk
2005-01-18 11:35 ` [Bug tree-optimization/14741] " rakdver at gcc dot gnu dot org
2005-01-19 23:39 ` pinskia at gcc dot gnu dot org
2005-01-23 13:31 ` steven at gcc dot gnu dot org
2005-01-23 19:43 ` steven at gcc dot gnu dot org
2005-01-23 20:00 ` steven at gcc dot gnu dot org
2005-01-28 16:00 ` jv244 at cam dot ac dot uk
2005-01-28 16:23 ` steven at gcc dot gnu dot org
2005-01-28 16:31 ` jv244 at cam dot ac dot uk
2005-01-28 17:22   ` Daniel Berlin
2005-01-28 17:22 ` dberlin at dberlin 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).