public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64099] [5 Regression] ~15% runtime increase for fatigue.f90. Date: Fri, 28 Nov 2014 13:16:00 -0000 [thread overview] Message-ID: <bug-64099-4-zdOO90BGka@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-64099-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64099 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Dominique d'Humieres from comment #2) > > I don't see this on any of our testers. What CPU do you have and what default > > -march gets used for you? (thus please show -v output) > > My CPU is a 2.8 GHz Intel Core i7. All the versions reported in comment 0 > have been configured with > > ../p_work/configure --prefix=/opt/gcc/gcc4.10p-#rev.p#patch > --enable-languages=c,c++,lto,fortran,ada,objc,obj-c++ --with-gmp=/opt/mp > --with-system-zlib --enable-checking=release --with-isl=/opt/mp --enable-lto > --enable-plugin --with-arch=core2 --with-cpu=core2 Ok, so it is -march=core2 > but r216631 for which --enable-checking=release has been omitted. #rev. is > the revision and #patch is the number of patches required to bootstrap. > > > Btw, -flto should be redundant for a single-file benchmark - -fwhole-program > > is enough. > > I know, however I have seen in the past some regressions when -flto is > added. Since I can afford to double the compile time, I keep it in my > reference options. > > > Does -ftree-loop-linear make a difference for you? > > AFAICT it does not on fatigue.f90, but I see some (minor) improvements for > other tests in the suite. > > > Our testers use -ffast-math -funroll-loops -O3. > > Using '-O3 -ffast-math' instead of '-Ofast' almost double the runtime: Ugh - -Ofast is an alias for -O3 -ffast-math. Ah, no - it also enables --param allow-store-data-races=1 ... > [Book15] lin/test% gfortran -O3 -ffast-math -fwhole-program fatigue.f90 > [Book15] lin/test% time a.out > /dev/null > 2.648u 0.002s 0:02.65 99.6% 0+0k 0+3io 38pf+0w > [Book15] lin/test% gfortran -Ofast -fwhole-program fatigue.f90 > [Book15] lin/test% time a.out > /dev/null > 1.385u 0.002s 0:01.38 100.0% 0+0k 0+1io 0pf+0w > [Book15] lin/test% gfc -O3 -ffast-math -fwhole-program fatigue.f90 > [Book15] lin/test% time a.out > /dev/null > 2.952u 0.002s 0:02.96 99.6% 0+0k 0+0io 40pf+0w > [Book15] lin/test% gfc -Ofast -fwhole-program fatigue.f90 > [Book15] lin/test% time a.out > /dev/null > 1.643u 0.001s 0:01.64 100.0% 0+0k 0+1io 0pf+0w > > (gfortran is 4.9.2 and gfc is 5.0 r218134). > > The runtime increase with '-O3 -ffast-math' is ~0.4s between r217816 and > r217833 > > [Book15] lin/test% /opt/gcc/gcc4.10p-217816p2/bin/gfortran -O3 -ffast-math > -fwhole-program fatigue.f90 > [Book15] lin/test% time a.out > /dev/null > 2.654u 0.002s 0:02.66 99.6% 0+0k 0+1io 41pf+0w > [Book15] lin/test% /opt/gcc/gcc4.10p-217833p1/bin/gfortran -O3 -ffast-math > -fwhole-program fatigue.f90 > [Book15] lin/test% time a.out > /dev/null > 2.962u 0.001s 0:02.97 99.6% 0+0k 0+1io 39pf+0w > > > Can you bisect the regressions to a single commit? > > I can do it for the range r217816-r217833 (the candidates are r217824 and > r217827, may be r217828 also). As indicated by the p? in my coding scheme, I > cannot bootstrap in the range r216631-r216747 without at least two patches, > so bisecting this range will take much longer. >From gcc-bugs-return-468844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 28 13:22:20 2014 Return-Path: <gcc-bugs-return-468844-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18691 invoked by alias); 28 Nov 2014 13:22:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18648 invoked by uid 48); 28 Nov 2014 13:22:15 -0000 From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64099] [5 Regression] ~15% runtime increase for fatigue.f90. Date: Fri, 28 Nov 2014 13:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-64099-4-r6pSvdDo2y@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-64099-4@http.gcc.gnu.org/bugzilla/> References: <bug-64099-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg03316.txt.bz2 Content-length: 555 https://gcc.gnu.org/bugzilla/show_bug.cgi?idd099 --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > Ugh - -Ofast is an alias for -O3 -ffast-math. Ah, no - it also enables > --param allow-store-data-races=1 ... -Ofast Disregard strict standards compliance. -Ofast enables all -O3 optimizations. It also enables optimizations that are not valid for all standard-compliant programs. It turns on -ffast-math and the Fortran-specific -fno-protect-parens and -fstack-arrays. My guess is that -fstack-arrays makes the difference.
next prev parent reply other threads:[~2014-11-28 13:16 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-28 10:47 [Bug middle-end/64099] New: " dominiq at lps dot ens.fr 2014-11-28 11:03 ` [Bug middle-end/64099] " rguenth at gcc dot gnu.org 2014-11-28 11:03 ` rguenth at gcc dot gnu.org 2014-11-28 13:16 ` rguenth at gcc dot gnu.org [this message] 2014-11-28 14:03 ` dominiq at lps dot ens.fr 2014-11-28 15:54 ` dominiq at lps dot ens.fr 2014-11-28 19:37 ` dominiq at lps dot ens.fr 2014-12-11 13:58 ` rguenth at gcc dot gnu.org 2014-12-11 15:02 ` rguenth at gcc dot gnu.org 2015-01-15 11:42 ` rguenth at gcc dot gnu.org 2015-01-15 12:32 ` dominiq at lps dot ens.fr 2015-03-03 16:02 ` law at redhat dot com 2015-04-15 9:47 ` [Bug middle-end/64099] [5/6 " dominiq at lps dot ens.fr 2015-04-15 11:24 ` dominiq at lps dot ens.fr 2015-04-15 13:15 ` dominiq at lps dot ens.fr 2015-04-22 12:02 ` jakub at gcc dot gnu.org 2015-07-16 9:20 ` rguenth at gcc dot gnu.org 2021-05-14 9:47 ` [Bug middle-end/64099] [9/10/11/12 " jakub at gcc dot gnu.org 2021-06-01 8:06 ` rguenth at gcc dot gnu.org 2022-05-27 9:35 ` [Bug middle-end/64099] [10/11/12/13 " rguenth at gcc dot gnu.org 2022-06-28 10:31 ` jakub at gcc dot gnu.org 2023-07-07 10:30 ` [Bug middle-end/64099] [11/12/13/14 " rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-64099-4-zdOO90BGka@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).