From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30698 invoked by alias); 29 Jul 2011 18:41:04 -0000 Received: (qmail 30685 invoked by uid 22791); 29 Jul 2011 18:41:03 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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, 29 Jul 2011 18:40:48 +0000 From: "wschmidt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49749] Reassociation rank algorithm does not include all non-NULL operands 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: wschmidt at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: wschmidt 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 Date: Fri, 29 Jul 2011 18:41: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: 2011-07/txt/msg02585.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49749 --- Comment #15 from William J. Schmidt 2011-07-29 18:40:26 UTC --- Author: wschmidt Date: Fri Jul 29 18:40:21 2011 New Revision: 176948 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176948 Log: 2011-07-29 Bill Schmidt PR tree-optimization/49749 * tree-ssa-reassoc.c (get_rank): New forward declaration. (PHI_LOOP_BIAS): Changed value. (phi_loop_bias): Replaced with... (phi_rank): ...this new function. (loop_carried_phi): New function. (propagate_rank): Likewise. (get_rank): Replace loop-biasing expression with call to phi_rank; remove variable maxrank; replace propagation logic with calls to propagate_rank. Modified: branches/ibm/gcc-4_6-branch/gcc/ChangeLog.ibm branches/ibm/gcc-4_6-branch/gcc/tree-ssa-reassoc.c