From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27073 invoked by alias); 2 Apr 2013 13:20:56 -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 Received: (qmail 27004 invoked by uid 48); 2 Apr 2013 13:20:47 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56812] Simple loop is not SLP-vectorized after r196872 Date: Tue, 02 Apr 2013 13:20: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed Ever Confirmed 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 X-SW-Source: 2013-04/txt/msg00116.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56812 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2013-04-02 Ever Confirmed|0 |1 --- Comment #3 from Richard Biener 2013-04-02 13:20:47 UTC --- It should not make a difference ... I see that vectorization is determined to be not profitable though: t.C:11: note: === vect_update_slp_costs_according_to_vf ===cost model: prologue peel iters set to vf/2.cost model: epilogue peel iters set to vf/2 because peeling for alignment is unknown. t.C:11: note: Cost model analysis: Vector inside of loop cost: 1 Vector prologue cost: 11 Vector epilogue cost: 2 Scalar iteration cost: 1 Scalar outside cost: 0 Vector outside cost: 13 prologue iterations: 2 epilogue iterations: 2 Calculated minimum iters for profitability: 17 but it's not vectorized with 4.8 either. -fno-vect-cost-model fixes this. Are you sure you attached the correct testcase?