From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4933 invoked by alias); 9 Sep 2011 19:07:23 -0000 Received: (qmail 4921 invoked by uid 22791); 9 Sep 2011 19:07:21 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Sep 2011 19:07:06 +0000 From: "Joost.VandeVondele at pci dot uzh.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/38306] [4.4/4.5/4.6/4.7 Regression] 15% slowdown w.r.t. 4.3 of computational kernel on some architectures Date: Fri, 09 Sep 2011 19:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at pci dot uzh.ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.4.7 X-Bugzilla-Changed-Fields: Last reconfirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2011-09/txt/msg00705.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38306 Joost VandeVondele changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2011-02-20 19:01:16 |2011-09-09 19:01:16 --- Comment #24 from Joost VandeVondele 2011-09-09 19:06:50 UTC --- checked again current trunk, the situation remains that -O2 is much faster than -O3: > gfortran -O2 -march=native -funroll-loops -ffast-math -ftree-vectorize pr38306.f90 ; ./a.out Time for evaluation [s]: 2.830 > gfortran -O3 -march=native -funroll-loops -ffast-math -ftree-vectorize pr38306.f90 ; ./a.out Time for evaluation [s]: 4.593 The issue is that at -O3 the subroutine PD2VAL is not vectorized, while it is at -O2.