> Hi,
>
> On Fri, 10 Jun 2011, Jan Hubicka wrote:
>
> > +static inline struct cgraph_node *
> > +cgraph_function_or_thunk_node (struct cgraph_node *node, enum availability
> > *availability)
> > +{
> > + if (availability)
> > +*availability = cgraph_function_body_availability (node);
> > +
Hi,
On Fri, 10 Jun 2011, Jan Hubicka wrote:
> +static inline struct cgraph_node *
> +cgraph_function_or_thunk_node (struct cgraph_node *node, enum availability
> *availability)
> +{
> + if (availability)
> +*availability = cgraph_function_body_availability (node);
> + return node;
> + ret
Hi,
this patch adds the functions to walk aliases and updates cgraph.c
infrastructure to use it.
It also fixes the existing missed optimization where ipa-pure-const and friends
did not update
decls of the same body aliases.
Bootstrapped/regtested x86_64-linux, comitted.
Honza
* cgraph.