> On Mon, Oct 6, 2014 at 11:52 AM, Eric Botcazou wrote:
> > Hi,
> >
> > you can have chains of clone functions in the callgraph but
> > can_inline_edge_p
> > stops at the first clone when it is looking for DECL_STRUCT_FUNCTION, which
> > can fool the following conditions in the predicate.
> >
> >
On Tue, Oct 7, 2014 at 9:43 AM, Eric Botcazou wrote:
>> I wonder if this is worth abstracting into a callee_fn () cgraph edge
>> method?
>
> That would rather be a cgraph node method without "callee" in the name since
> we also apply it to callers, something like:
>
> struct function *cgraph_node:
> I wonder if this is worth abstracting into a callee_fn () cgraph edge
> method?
That would rather be a cgraph node method without "callee" in the name since
we also apply it to callers, something like:
struct function *cgraph_node::cfun (void)
and the code in can_inline_edge_p would just be:
On Mon, Oct 6, 2014 at 11:52 AM, Eric Botcazou wrote:
> Hi,
>
> you can have chains of clone functions in the callgraph but can_inline_edge_p
> stops at the first clone when it is looking for DECL_STRUCT_FUNCTION, which
> can fool the following conditions in the predicate.
>
> Tested on x86_64-sus
Hi,
you can have chains of clone functions in the callgraph but can_inline_edge_p
stops at the first clone when it is looking for DECL_STRUCT_FUNCTION, which
can fool the following conditions in the predicate.
Tested on x86_64-suse-linux, OK for the mainline?
2014-10-06 Eric Botcazou