From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21221 invoked by alias); 3 Nov 2010 15:19:16 -0000 Received: (qmail 21207 invoked by uid 22791); 3 Nov 2010 15:19:15 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Wed, 03 Nov 2010 15:19:11 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/46009] ?: vectorized, very similar if is not 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: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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 Date: Wed, 03 Nov 2010 15:19: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: 2010-11/txt/msg00330.txt.bz2 Message-ID: <20101103151900.-BOR6KS_4VIivxG0sDRUCdisYFQh2Ahf8ZM9qDGM9DM@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009 --- Comment #4 from Jakub Jelinek 2010-11-03 15:18:55 UTC --- Author: jakub Date: Wed Nov 3 15:18:50 2010 New Revision: 166251 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166251 Log: PR tree-optimization/46009 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call cond_if_else_store_replacement if bb1 and bb2 have the same single successor. (cond_store_replacement): Use gimple_assign_single_p, don't check if rhs is SSA_NAME or invariant. Call release_defs for assign. (cond_if_else_store_replacement): New function. * gcc.dg/vect/pr46009.c: New function. Added: trunk/gcc/testsuite/gcc.dg/vect/pr46009.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-phiopt.c