This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't move stmts in reassoc during linearization unless necessary (PR middle-end/38533)
- From: Diego Novillo <dnovillo at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Dec 2008 15:08:07 -0500
- Subject: Re: [PATCH] Don't move stmts in reassoc during linearization unless necessary (PR middle-end/38533)
- References: <20081217195116.GS17496@tyan-ft48-01.lab.bos.redhat.com>
On Wed, Dec 17, 2008 at 14:51, Jakub Jelinek <jakub@redhat.com> wrote:
> 2008-12-17 Jakub Jelinek <jakub@redhat.com>
>
> PR middle-end/38533
> * tree-ssa-reassoc.c (remove_visited_stmt_chain): New function.
> (rewrite_expr_tree): Add moved argument, move stmts together if
> needed. Call remove_visited_stmt_chain.
> (linearize_expr_tree): Don't move stmts here.
> (reassociate_bb): Call remove_visited_stmt_chain if num ops is 1.
> Adjust rewrite_expr_tree caller.
>
> * gcc.dg/tree-ssa/pr38533.c: New test.
> * gcc.c-torture/execute/pr38533.c: New test.
OK.
Diego.