This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tuples][patch] Tuplifying dce


Committed with your change.

On Thu, Mar 20, 2008 at 4:19 PM, Diego Novillo <dnovillo@google.com> wrote:
> On Thu, Mar 20, 2008 at 19:16, Oleg Ryjkov <olegr@google.com> wrote:
>
>  >  2008-03-20  Jakub Staszak  <kuba@et.pl>
>  >             Oleg Ryjkov  <olegr@google.com>
>  >
>  >         * tree-ssa-sink.c (is_hidden_global_store): Tuplified.
>  >         * tree-ssa-dce.c (mark_stmt_necessary, mark_operand_necessary,
>  >         mark_stmt_if_obviously_necessary,
>  >         mark_control_dependent_edges_necessary,
>  >         find_obviously_necessary_stmts, propagate_necessity,
>  >         remove_dead_phis, eliminate_unnecessary_stmts, tree_dce_init,
>  >         tree_dce_done): Tuplified.
>  >         * tree-flow.h (is_hidden_global_store): Tuplified the declaration.
>  >         * passes.c (init_optimization_passes): Enabled pass_dce and
>  >         pass_cd_dce.
>  >
>  OK with one minor nit:
>
>  >       /* PHI nodes are never inherently necessary.  */
>  >-      for (phi = phi_nodes (bb); phi; phi = PHI_CHAIN (phi))
>  >-      NECESSARY (phi) = 0;
>  >+
>  >+      for (gsi = gsi_start (phis); !gsi_end_p (gsi); gsi_next (&gsi))
>
>  You can use the new gsi_start_phis (bb) here.
>
>
>  Thanks.  Diego.
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]