From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11080 invoked by alias); 20 Feb 2012 12:12:04 -0000 Received: (qmail 11063 invoked by uid 22791); 20 Feb 2012 12:12:03 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_TM 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; Mon, 20 Feb 2012 12:11:16 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/23286] missed fully redundant expression Date: Mon, 20 Feb 2012 12:13: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: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 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 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-02/txt/msg01946.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23286 --- Comment #39 from Richard Guenther 2012-02-20 11:50:00 UTC --- Apart from that libada bootstrap issue (reproduces with the stage1 compiler), the testsuite is clean apart from vectorizer testcases which show that do_hoist_insertion is hoisting stmts across loops for (i = 0; i < N; i++) { diff = 0; for (j = k; j < M; j+=4) { diff += in[j+i]*coeff[j]; } out[i] = out[i] + diff; } is turned into for (i = 0; i < N; i++) { diff = 0; tem = out[i]; for (j = k; j < M; j+=4) { diff += in[j+i]*coeff[j]; } out[i] = tem + diff; } which confuses outer loop vectorization enough to make it fail for FAIL: gcc.dg/vect/vect-outer-fir-big-array.c -flto scan-tree-dump-times vect "OU TER LOOP VECTORIZED" 2 FAIL: gcc.dg/vect/vect-outer-fir-lb-big-array.c -flto scan-tree-dump-times vect "OUTER LOOP VECTORIZED" 2 FAIL: gcc.dg/vect/vect-outer-fir-lb.c -flto scan-tree-dump-times vect "OUTER LOO P VECTORIZED" 2 FAIL: gcc.dg/vect/vect-outer-fir.c -flto scan-tree-dump-times vect "OUTER LOOP V ECTORIZED" 2