This is the mail archive of the gcc@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: core changes for mep port


DJ Delorie <dj@redhat.com> writes:

> > Do you mean where is the best place to call these functions?
> 
> Yup.
> 
> > Look at the calls to cgraph_mark_edge in ipa-inline.c
> 
> There is no such function.  I couldn't find anything in ipa-inline
> that (1) had access to both ends of the call edge, (2) was actually
> called, and (3) was called before the inlining happened.

Sorry, I meant cgraph_mark_inline.  It looks like what you want to
me.  But maybe I'm misreading it.

> > and look at inline_forbidden_p--there I assume that cfun will hold
> > the caller.
> 
> cfun holds the callee.  I found a lot of functions that only had
> access to the callee (no help there).  I also found lots of functions
> that looked promising but were never called.

Sorry, you're right, inline_forbidden_p is different.

Ian


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