This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Work harder to find DECL_STRUCT_FUNCTION


> On Mon, Oct 6, 2014 at 11:52 AM, Eric Botcazou <ebotcazou@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.

I would rather fix can_inline_edge_p to not use DECL_STRUCT_FUNCTION - it is not
available during WPA and thus all the code using it is wrong.  The 
non_call_exceptions code has FIXME explaining that, I see that someone added cilk.
It should be easy to move these flags to cgraph node itself - originally I did not
want to duplicate it and worried about performance implications.

Honza
> 
> Thanks,
> Richard.
> 
> >
> > 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
> >
> >         * ipa-inline.c (can_inline_edge_p): Recurse on clones to find the
> >         DECL_STRUCT_FUNCTION of the original node.
> >
> >
> > --
> > Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]