public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44773]  New: [4.6 Regression] Unnecessary temporaries increase the runtime for channel.f90 by ~70%
@ 2010-07-01 21:22 dominiq at lps dot ens dot fr
  2010-07-02  7:31 ` [Bug fortran/44773] " burnus at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-07-01 21:22 UTC (permalink / raw)
  To: gcc-bugs

At revision 161670, gfortran creates unneeded temporaries (not created up to
r161462), for instance

[macbook] lin/test% gfc -O3 -ffast-math -Warray-temporaries channel.f90
channel.f90:148.11:

    dudx = ddx(u(:,:,mid))
           1
Warning: Creating array temporary at (1)
channel.f90:149.11:

    dvdy = ddy(v(:,:,mid))
           1
Warning: Creating array temporary at (1)
channel.f90:150.11:

    dhdx = ddx(h(:,:,mid))
           1
Warning: Creating array temporary at (1)
channel.f90:151.11:

    dhdy = ddy(h(:,:,mid))
           1
Warning: Creating array temporary at (1)

rsulting in a ~70% increase in the execution time

[macbook] lin/test% time a.out > /dev/null
5.099u 0.032s 0:05.13 99.8%     0+0k 0+0io 0pf+0w

compared to

[macbook] lin/test% gfcf -O3 -ffast-math -Warray-temporaries channel.f90       
                                                                      [macbook]
lin/test% time a.out > /dev/null
2.964u 0.006s 0:02.99 98.9%     0+0k 0+0io 0pf+0w

I suspect that revision 161550 is the cause.


-- 
           Summary: [4.6 Regression] Unnecessary temporaries increase the
                    runtime for channel.f90 by ~70%
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


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


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

end of thread, other threads:[~2010-07-12  7:26 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01 21:22 [Bug fortran/44773] New: [4.6 Regression] Unnecessary temporaries increase the runtime for channel.f90 by ~70% dominiq at lps dot ens dot fr
2010-07-02  7:31 ` [Bug fortran/44773] " burnus at gcc dot gnu dot org
2010-07-02  8:19 ` dominiq at lps dot ens dot fr
2010-07-02  8:46 ` mikael at gcc dot gnu dot org
2010-07-02  8:51 ` dominiq at lps dot ens dot fr
2010-07-02 15:25 ` jvdelisle at gcc dot gnu dot org
2010-07-02 16:53 ` dominiq at lps dot ens dot fr
2010-07-03  9:37 ` tkoenig at gcc dot gnu dot org
2010-07-03 17:03 ` tkoenig at gcc dot gnu dot org
2010-07-04 10:49 ` dominiq at lps dot ens dot fr
2010-07-08 11:41 ` ubizjak at gmail dot com
2010-07-08 12:30 ` pault at gcc dot gnu dot org
2010-07-08 13:33 ` burnus at gcc dot gnu dot org
2010-07-08 15:33 ` paul dot richard dot thomas at gmail dot com
2010-07-08 19:56 ` tkoenig at netcologne dot de
2010-07-08 19:57 ` burnus at gcc dot gnu dot org
2010-07-09 12:02 ` dominiq at lps dot ens dot fr
2010-07-09 12:27 ` burnus at gcc dot gnu dot org
2010-07-10 14:57 ` pault at gcc dot gnu dot org
2010-07-10 17:09 ` pault at gcc dot gnu dot org
2010-07-11 16:07 ` pault at gcc dot gnu dot org
2010-07-12  6:31 ` paul dot richard dot thomas at gmail dot com
2010-07-12  7:26 ` steven 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).