Re: [google] AutoFDO implementation

2012-10-06 Thread Dehao Chen
On Sat, Oct 6, 2012 at 6:13 PM, Andi Kleen wrote: > Jan Hubicka writes: >> >> I think it is useful feature, yes (and was in my TODO list for quite some >> time). Unlike edge profiles, these profiles should be also more independent >> of >> source code/configuration changes. > > It would be good

Re: [google] AutoFDO implementation

2012-10-06 Thread Dehao Chen
On Sat, Oct 6, 2012 at 10:55 AM, Jan Hubicka wrote: >> Hi, >> >> This patch implements the fine-graind AutoFDO optimizations for GCC. >> It uses linux perf to collect sample profiles, and uses debug info to >> represent the profile. In GCC, it uses the profile to annotate CFG to >> drive FDO. This

Re: [google] AutoFDO implementation

2012-10-06 Thread Andi Kleen
Jan Hubicka writes: > > I think it is useful feature, yes (and was in my TODO list for quite some > time). Unlike edge profiles, these profiles should be also more independent of > source code/configuration changes. It would be good to look at the tool, but: - Does it use the perf LBR support to

Re: [google] AutoFDO implementation

2012-10-06 Thread Jan Hubicka
> Hi, > > This patch implements the fine-graind AutoFDO optimizations for GCC. > It uses linux perf to collect sample profiles, and uses debug info to > represent the profile. In GCC, it uses the profile to annotate CFG to > drive FDO. This can bring 50% to 110% of the speedup derived by > traditi

Re: [google] AutoFDO implementation

2012-10-05 Thread Xinliang David Li
thanks. That will be helpful. David On Fri, Oct 5, 2012 at 2:09 PM, Dehao Chen wrote: > Sure, I'll add a detailed documentation in a gcc wiki page. > > Dehao > > On Fri, Oct 5, 2012 at 2:01 PM, Xinliang David Li wrote: >> Dehao, the file auto-profile.c has some high level description of >> aFD

Re: [google] AutoFDO implementation

2012-09-28 Thread Andi Kleen
Dehao Chen writes: > > If people in up-stream find this feature interesting, I'll spend some > time to port this to trunk and try to opensource the tool to generate > profile data file. I find it interesting and would like to see the tool and a trunk version. Thanks, -Andi -- a...@linux.intel.