On Mon, Oct 6, 2014 at 11:52 AM, Eric Botcazou <ebotca...@adacore.com> 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-suse-linux, OK for the mainline?
I wonder if this is worth abstracting into a callee_fn () cgraph edge method? Honzas call. Thanks, Richard. > > 2014-10-06 Eric Botcazou <ebotca...@adacore.com> > > * ipa-inline.c (can_inline_edge_p): Recurse on clones to find the > DECL_STRUCT_FUNCTION of the original node. > > > -- > Eric Botcazou