public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/51497] New: [4.7 Regression] The run time for the polyhedron test nf.f90 is ~10% slower with -flto after revision 182107
@ 2011-12-10 13:27 dominiq at lps dot ens.fr
  2011-12-10 18:42 ` [Bug lto/51497] " dominiq at lps dot ens.fr
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-12-10 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51497
           Summary: [4.7 Regression] The run time for the polyhedron test
                    nf.f90 is ~10% slower with -flto after revision 182107
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dominiq@lps.ens.fr
                CC: rguenther@suse.de
              Host: x86_64-apple-darwin10
            Target: x86_64-apple-darwin10
             Build: x86_64-apple-darwin10


After revision 182107 the run time for the polyhedron test nf.f90 is ~10%
slower with -flto:

[macbook] lin/test% gfc -Ofast -funroll-loops nf.f90
[macbook] lin/test% time a.out > /dev/null
18.795u 0.202s 0:19.00 99.9%    0+0k 0+0io 0pf+0w
[macbook] lin/test% gfc -Ofast -funroll-loops nf.f90 -flto
[macbook] lin/test% time a.out > /dev/null
20.640u 0.173s 0:20.82 99.9%    0+0k 0+0io 0pf+0w

This slowdown disappears if I revert the first 'else if' added block:

[macbook] lin/test% gfcp -Ofast -funroll-loops nf.f90
[macbook] lin/test% time a.out > /dev/null
18.820u 0.198s 0:19.02 99.9%    0+0k 0+0io 0pf+0w
[macbook] lin/test% gfcp -Ofast -funroll-loops nf.f90 -flto
[macbook] lin/test% time a.out > /dev/null
18.821u 0.202s 0:19.02 100.0%    0+0k 0+0io 0pf+0w

but not if I revert the second one:

[macbook] lin/test% /opt/gcc/gcc4.7p-182107r1a/bin/gfortran -Ofast
-funroll-loops nf.f90
[macbook] lin/test% time a.out > /dev/null
18.809u 0.199s 0:19.01 99.8%    0+0k 0+0io 0pf+0w
[macbook] lin/test% /opt/gcc/gcc4.7p-182107r1a/bin/gfortran -Ofast
-funroll-loops nf.f90 -flto
[macbook] lin/test% time a.out > /dev/null
20.601u 0.177s 0:20.78 99.9%    0+0k 0+0io 0pf+0w


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

end of thread, other threads:[~2011-12-14 15:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-10 13:27 [Bug lto/51497] New: [4.7 Regression] The run time for the polyhedron test nf.f90 is ~10% slower with -flto after revision 182107 dominiq at lps dot ens.fr
2011-12-10 18:42 ` [Bug lto/51497] " dominiq at lps dot ens.fr
2011-12-11 14:14 ` dominiq at lps dot ens.fr
2011-12-12 10:40 ` rguenth at gcc dot gnu.org
2011-12-12 13:11 ` dominiq at lps dot ens.fr
2011-12-12 14:46 ` rguenth at gcc dot gnu.org
2011-12-12 15:19 ` dominiq at lps dot ens.fr
2011-12-14 13:06 ` rguenth at gcc dot gnu.org
2011-12-14 15:33 ` rguenth at gcc dot gnu.org
2011-12-14 15:36 ` rguenth at gcc dot gnu.org
2011-12-14 15:39 ` dominiq at lps dot ens.fr

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).