This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] tree-ssa-dce.c: Use the updated VEC API instead of VARRAY.
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Kazu Hirata <kazu at cs dot umass dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 23 Apr 2005 10:59:46 -0400
- Subject: Re: [patch] tree-ssa-dce.c: Use the updated VEC API instead of VARRAY.
- Organization: Red Hat Canada
- References: <20050423.105534.96999979.kazu@cs.umass.edu>
On Sat, Apr 23, 2005 at 10:55:34AM -0400, Kazu Hirata wrote:
> * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
> (mark_stmt_necessary, propagate_necessity,
> mark_really_necessary_kill_operand_phis): Update uses of
> worklist.
> (tree_dce_init): Allocate worklist using VEC_alloc.
> (tree_dce_done): Free worklist using VEC_free.
>
OK. All tested changes along these lines are pre-approved.
Diego.