Re: [PATCH 2/7] cgraph_node -> cgraph_get_node conversions accepting NULL results

2011-04-11 Thread Martin Jambor
Hi, On Mon, Apr 11, 2011 at 12:18:24PM +0200, Jan Hubicka wrote: > > 2011-04-06 Martin Jambor > > > > gcc/ > > * cgraph.c (cgraph_local_info): Call cgraph_get_node instead > > of cgraph_node, handle NULL return value. > > (cgraph_global_info): Likewise. > > (cgraph_rtl_info): L

Re: [PATCH 2/7] cgraph_node -> cgraph_get_node conversions accepting NULL results

2011-04-11 Thread Jan Hubicka
> 2011-04-06 Martin Jambor > > gcc/ > * cgraph.c (cgraph_local_info): Call cgraph_get_node instead > of cgraph_node, handle NULL return value. > (cgraph_global_info): Likewise. > (cgraph_rtl_info): Likewise. > * tree-inline.c (estimate_num_insns): Likewise. >

[PATCH 2/7] cgraph_node -> cgraph_get_node conversions accepting NULL results

2011-04-06 Thread Martin Jambor
Hi, this patch converts a number of calls to cgraph_node to calls to cgraph_get_node and provides means to deal with returned NULL value. These are essentially the places where lazy node creation was happening for no good reason. Bootstrapped and tested separately on x86_64-linux without any prob