This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH cgraphunit.c: Don't revisit SAVE_EXPR nodes
> On Wed, 3 Sep 2003, Jan Hubicka wrote:
> > So I guess it would be best to allocate hashtable in cgraph_record_edges
> > and use walk_tree with it instead of walk_tree_without_duplicates.
> > Would that work, if so would you care to do that? Consider the patch
> > pre-approved then.
>
> I agree. Here's what I committed, following another bootstrap/regtest.
>
> Jeff
>
> 2003-09-03 Jeff Sturm <jsturm@one-point.com>
>
> * cgraphunit.c (visited_nodes): New static variable.
> (record_call_1): Use walk_tree with visited_nodes.
> (cgraph_create_edges): Use walk_tree with visited_nodes.
> Setup/teardown visited_nodes hashtable.
Thanks!
Honza