Re: hot/cold pointer annotation

2010-06-11 Thread Richard Guenther
On Thu, Jun 10, 2010 at 10:26 PM, Andi Kleen a...@firstfloor.org 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

Re: hot/cold pointer annotation

2010-06-11 Thread Andi Kleen
Richard Guenther richard.guent...@gmail.com 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

hot/cold pointer annotation

2010-06-10 Thread Andi Kleen
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 manual method tables. A lot of code is targetted by a few function