> 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.

> 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.

Reply via email to