This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tuples][patch] Tuplifiyng pass_forwprop
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "Oleg Ryjkov" <olegr at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Apr 2008 17:05:17 -0400
- Subject: Re: [tuples][patch] Tuplifiyng pass_forwprop
- References: <14be89990804101606t4d8566c6j9fc8c6fadb272104@mail.gmail.com>
On Thu, Apr 10, 2008 at 19:06, Oleg Ryjkov <olegr@google.com> wrote:
> +2008-04-10 Oleg Ryjkov <olegr@google.com>
> +
> + * tree-ssa-forwprop.c (get_prop_dest_stmtm get_prop_source_stmt,
> + can_propagate_from, remove_prop_source_from_use,
> + tidy_after_forward_propagate_addr,
> + forward_propagate_addr_into_variable_array_index,
> + forward_propagate_addr_expr_1, forward_propagate_addr_expr,
> + forward_propagate_comparison, simplify_not_neg_expr,
> + -simplify_switch_expr,
> + tree_ssa_forward_propagate_single_use_variables): Tuplified.
> + (forward_propagate_into_cond): Tuplified and moved some functionality
> + into forward_propagate_into_cond_gimple.
> + (rhs_to_tree, forward_propagate_into_cond_gimple): New functions.
> + * passes.c (init_optimization_passes): Enabled pass_forwprop.
> + * tree-cfg.c (find_taken_edge_cond_expr): Fixed comment.
> +
OK with
> +/* Return the rhs of a gimple_assign STMT in a form of a single tree,
> + converted to type TYPE.
> + FIXME tuples: This should disappear, but is needed so we can combine
> + expressions and use the fold() interfaces. Long term, we need to
> + develop folding and combine routines that deal with gimple
> + exclusively . */
> +
> +static tree
> +rhs_to_tree (tree type, gimple stmt)
In here you can call the new gimple_fold_rhs() that Bill added to
DOM. Since that function is called from more than one place,
please move it to gimple.c first.
> static int
> -forward_propagate_into_cond (tree cond_expr, tree stmt)
> +forward_propagate_into_cond_gimple (gimple stmt)
s/cond_gimple/gimple_cond/
Diego.