This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49749] Reassociation rank algorithm does not include all non-NULL operands
- From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 29 Jul 2011 18:40:47 +0000
- Subject: [Bug tree-optimization/49749] Reassociation rank algorithm does not include all non-NULL operands
- Auto-submitted: auto-generated
- References: <bug-49749-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49749
--- Comment #15 from William J. Schmidt <wschmidt at gcc dot gnu.org> 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 <wschmidt@linux.vnet.ibm.com>
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