From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26568 invoked by alias); 18 May 2012 19:44:27 -0000 Received: (qmail 26431 invoked by uid 22791); 18 May 2012 19:44:26 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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, 18 May 2012 19:44:13 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53346] [4.6/4.7/4.8 Regression] Bad vectorization in the proc cptrf2 of rnflow.f90 Date: Fri, 18 May 2012 19:45:00 -0000 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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 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 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: 2012-05/txt/msg01862.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53346 --- Comment #18 from Dominique d'Humieres 2012-05-18 18:29:06 UTC --- > Are conditional moves that bad on x86? The change which uses them more for > COND_EXPR was mine but really I think this was a latent bug or a way to say > chose conditional move over jumps for some targets. As said in comment #0 the first regression appeared between revisions 162456 (2010-07-23) and 164728 (2010-09-29), so the problem is fairly old [macbook] test/dbg_rnflow% /opt/gcc/gcc4.6p-162456/bin/gfortran -c -O3 cptrf2.f90 [macbook] test/dbg_rnflow% makeo ; time a.out > /dev/null 20.904u 0.345s 0:21.26 99.9% 0+0k 0+0io 0pf+0w [macbook] test/dbg_rnflow% /opt/gcc/gcc4.6p-162456/bin/gfortran -c -O3 -fno-tree-loop-if-convert cptrf2.f90 [macbook] test/dbg_rnflow% makeo ; time a.out > /dev/null 20.898u 0.341s 0:21.24 99.9% 0+0k 0+0io 0pf+0w [macbook] test/dbg_rnflow% /opt/gcc/gcc4.6p-164728/bin/gfortran -c -O3 cptrf2.f90 [macbook] test/dbg_rnflow% makeo ; time a.out > /dev/null 28.607u 0.346s 0:28.96 99.9% 0+0k 0+0io 0pf+0w [macbook] test/dbg_rnflow% /opt/gcc/gcc4.6p-164728/bin/gfortran -c -O3 -fno-tree-loop-if-convert cptrf2.f90 [macbook] test/dbg_rnflow% makeo ; time a.out > /dev/null 21.153u 0.342s 0:21.50 99.9% 0+0k 0+0io 0pf+0w