Re: Disable early inlining while compiling for coverage (issue5173042)

2011-11-07 Thread Xinliang David Li
On Mon, Nov 7, 2011 at 1:30 PM, Sharad Singhai wrote: > Honza, > Sorry, I forgot about this. Could you please put this on your TODO list? > > David, > While a proper fix is pending for the trunk, we need this interim fix > internally. Okay for google/main? ok. thanks, David > > Thanks, > Sharad

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-11-07 Thread Sharad Singhai
Honza, Sorry, I forgot about this. Could you please put this on your TODO list? David, While a proper fix is pending for the trunk, we need this interim fix internally. Okay for google/main? Thanks, Sharad On Sun, Oct 2, 2011 at 3:08 AM, Jan Hubicka wrote: >> >> I believe Richi opent PR back wh

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-10-02 Thread Jan Hubicka
> > I believe Richi opent PR back when he introduced the SSA profiling, but I > don;t seem > to be able to find it now. Ha, you found it. It is PR gcov-profile/45890. Given outcome of this dicussion I think it would make most sense to make coverage just after into-SSA (and perhaps arrange cfgcl

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-10-02 Thread Jan Hubicka
> > Early inline can be important for FDO performance reasons -- as inline > instances get 'context' sensitive profile data. Yep, early inlining combine well with FDO. > > Inlining alone does not mess up the line info, but most > > optimizations we have in early optimization queue do. > > Inlin

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-10-01 Thread शरद सिंघई
I have updated PR/45890 with a test case. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45890 In any case, I am attaching a test case here as well. Sharad On Sat, Oct 1, 2011 at 10:19 AM, Xinliang David Li wrote: > > On Sat, Oct 1, 2011 at 5:17 AM, Jan Hubicka wrote: > >> Yes, this will improve

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-10-01 Thread Xinliang David Li
On Sat, Oct 1, 2011 at 5:17 AM, Jan Hubicka wrote: >> Yes, this will improve test coverage option's usability, but please >> provide the example to explain the issues. >> >> David >> >> On Fri, Sep 30, 2011 at 6:12 PM, Sharad Singhai wrote: >> > This patch disables early inlining when --coverage

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-10-01 Thread Jan Hubicka
> Yes, this will improve test coverage option's usability, but please > provide the example to explain the issues. > > David > > On Fri, Sep 30, 2011 at 6:12 PM, Sharad Singhai wrote: > > This patch disables early inlining when --coverage option is > > specified. This improves coverage data in p

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-09-30 Thread शरद सिंघई
Here is an example. In the attached file, foo.c contains only two functions, 'sum' and 'main'. The function 'sum' gets inlined into 'main' (with -O2). gcc --coverage -O2 foo.c ./a.out gcov -b foo.c Now the coverage data for the 'if' condition in 'sum' looks like this: (in attached file foo.c.gcov

Re: Disable early inlining while compiling for coverage (issue5173042)

2011-09-30 Thread Xinliang David Li
Yes, this will improve test coverage option's usability, but please provide the example to explain the issues. David On Fri, Sep 30, 2011 at 6:12 PM, Sharad Singhai wrote: > This patch disables early inlining when --coverage option is > specified. This improves coverage data in presence of other