From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21684 invoked by alias); 22 Jun 2013 16:55:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 21650 invoked by uid 48); 22 Jun 2013 16:55:25 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/31139] sum(w_re(1:nn,1)*fi(i(1:nn, ii))) up to 3.5x slower than C version Date: Sat, 22 Jun 2013 16:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.3.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: 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: 2013-06/txt/msg01225.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31139 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #8 from Dominique d'Humieres --- > I have not tested this with latest trunk, but I wonder if any of the recent > optimization work has improved this. Can it be closed yet? A quick test on a 2.5Ghz Core2Duo at revision 200321 with -Ofast shows Fortran: 0.330040932 c_sse: 0.225150943 c_struct: 0.227035046 and with -Ofast -funroll-loops Fortran: 0.213014960 c_sse: 0.223238945 c_struct: 0.209081888 The change occured between 4.5 and 4.6 (note that 4.6 and 4.7 gives 0.263675928 without -funroll-loops). Is this still an issue?