From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20552 invoked by alias); 23 Sep 2013 09:03:24 -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 20505 invoked by uid 48); 23 Sep 2013 09:03:21 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/58497] SLP vectorizes identical operations Date: Mon, 23 Sep 2013 09:03: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-Version: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01636.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58497 --- Comment #2 from Richard Biener --- Created attachment 30884 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30884&action=edit prototype patch A quick check shows generated code will be g: .LFB0: .cfi_startproc xorps %xmm0, %xmm0 addl $1, %edi cvtsi2ss %edi, %xmm0 shufps $0, %xmm0, %xmm0 ret and the patch shows possible issues with finding an insert location for the init stmt (otherwise "external" is just outside of the current basic-block).