From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1780 invoked by alias); 15 May 2011 18:17:55 -0000 Received: (qmail 1769 invoked by uid 22791); 15 May 2011 18:17:55 -0000 X-SWARE-Spam-Status: No, hits=-2.7 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; Sun, 15 May 2011 18:17:41 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49006] New: [4.6/4.7 Regression] Missed vectorization due to revision 167531 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 15 May 2011 18:45: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-05/txt/msg01212.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49006 Summary: [4.6/4.7 Regression] Missed vectorization due to revision 167531 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: dominiq@lps.ens.fr CC: rguenth@gcc.gnu.org Created attachment 24250 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24250 source code On x86_64-apple-darwin10 the attached code (an avatar of the polyhedron test induct.f90) is no longer properly vectorized after revision 167531: [macbook] lin/test% /opt/gcc/gcc4.6p-167530/bin/gfortran -Ofast -ftree-vectorizer-verbose=2 induct_v4.f90 ... induct_v4.f90:1757: note: not vectorized: can't create epilog loop 1. induct_v4.f90:1766: note: LOOP VECTORIZED. induct_v4.f90:1711: note: LOOP VECTORIZED. induct_v4.f90:1633: note: LOOP VECTORIZED. induct_v4.f90:1449: note: vectorized 3 loops in function. induct_v4.f90:2168: note: not vectorized: can't create epilog loop 1. induct_v4.f90:2177: note: LOOP VECTORIZED. induct_v4.f90:2095: note: LOOP VECTORIZED. induct_v4.f90:2018: note: LOOP VECTORIZED. induct_v4.f90:1832: note: vectorized 3 loops in function. ... [macbook] lin/test% time a.out > /dev/null 12.677u 0.027s 0:12.70 99.9% 0+0k 0+1io 0pf+0w [macbook] lin/test% /opt/gcc/gcc4.6p-167531/bin/gfortran -Ofast -ftree-vectorizer-verbose=2 induct_v4.f90 ... induct_v4.f90:1728: note: not vectorized: unsupported use in stmt. induct_v4.f90:1757: note: not vectorized: unsupported use in stmt. induct_v4.f90:1711: note: LOOP VECTORIZED. induct_v4.f90:1633: note: LOOP VECTORIZED. induct_v4.f90:1449: note: vectorized 2 loops in function. induct_v4.f90:2168: note: not vectorized: unsupported use in stmt. induct_v4.f90:2095: note: LOOP VECTORIZED. induct_v4.f90:2018: note: LOOP VECTORIZED. induct_v4.f90:1832: note: vectorized 2 loops in function. ... [macbook] lin/test% time a.out > /dev/null 21.831u 0.031s 0:21.86 100.0% 0+0k 0+0io 0pf+0w