Re: hot/cold pointer annotation

2010-06-11 Thread Andi Kleen
Richard Guenther writes: > > Iff the inheritence is restricted to initializers like in the above example > it should be straight-forward to implement in the frontends. Great. For best results would need some inheritance to callees too, if the callees are not called by other non annotated code (t

Re: hot/cold pointer annotation

2010-06-11 Thread Richard Guenther
On Thu, Jun 10, 2010 at 10:26 PM, Andi Kleen wrote: > Hi Honza, > > Here's an idea to make it easier to manually annotate > large C code bases for hot/cold functions where > it's too difficult to use profile feedback. > > It's fairly common here to call function through > function pointers in manu