From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13785 invoked by alias); 9 Feb 2011 11:25:54 -0000 Received: (qmail 13770 invoked by uid 22791); 9 Feb 2011 11:25:53 -0000 X-SWARE-Spam-Status: No, hits=-2.6 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; Wed, 09 Feb 2011 11:25:49 +0000 From: "Joost.VandeVondele at pci dot uzh.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/47657] missed vectorization X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at pci dot uzh.ch X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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 Date: Wed, 09 Feb 2011 11:48:00 -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 X-SW-Source: 2011-02/txt/msg01165.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47657 --- Comment #2 from Joost VandeVondele 2011-02-09 11:25:42 UTC --- Created attachment 23283 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23283 testcase including timing routine, last number is flop rate. the cray compiler is supposed to *not* interchange loops, as I'm using: ftn -O3,ipa0,nointerchange,vector3 testcase.f90 to compile. This gives about 5.6Gflops. Unrolling still seems to happen (there are 16 mults in the inner loop), and ftn -O3,ipa0,nointerchange,vector3,unroll0 testcase.f90 yields poor performance (2.3Gflops). Gfortran 4.5 yields 3.424Gflops : gfortran -O3 -ffast-math -funroll-loops -march=native testcase.f90