Re: Use separate sections to stream non-trivial constructors

2014-07-11 Thread Jan Hubicka
Hi this is patch i am going to commit after testing. It removes DECL_INIT_IO timevar that guards only one variable set (so hardly measure anything) and moves GIMPLE_IN to proper place. It also adds CTORS_IN and CTORS_OUT. I get: ipa lto gimple out : 0.37 ( 0%) usr 0.21 ( 3%) sys 0.64 (

Re: Use separate sections to stream non-trivial constructors

2014-07-11 Thread Jan Hubicka
Hi, this is the variant of patch I comitted. I noticed that partitioning actually calls ctor_for_folding just to figure out if the constant value may be used that drags in every readonly variable ctor into memory at WPA. So now we have separate predicate varpool_ctor_useable_for_folding_p to check

Re: Use separate sections to stream non-trivial constructors

2014-07-11 Thread Jan Hubicka
> > Well, just make them regular (anonymous) VAR_DECLs then ... (the fact > that a CONST_DECL is anonymous is probably the only real difference - > and that they are mergeable by content). Something like that, perhaps. Plan to do that incrementally - having them in symbol tabel first is an impor

Re: Use separate sections to stream non-trivial constructors

2014-07-11 Thread Richard Biener
On Fri, 11 Jul 2014, Jan Hubicka wrote: > > On Fri, 11 Jul 2014, Jan Hubicka wrote: > > > > > Hi, > > > since we both agreed offlining constructors from global decl stream is a > > > good > > > idea, I went ahead and implemented it. I would like to followup by an > > > cleanups; for example the

Re: Use separate sections to stream non-trivial constructors

2014-07-11 Thread Jan Hubicka
> On Fri, 11 Jul 2014, Jan Hubicka wrote: > > > Hi, > > since we both agreed offlining constructors from global decl stream is a > > good > > idea, I went ahead and implemented it. I would like to followup by an > > cleanups; for example the sections are still tagged as function sections, > > b

Re: Use separate sections to stream non-trivial constructors

2014-07-11 Thread Richard Biener
On Fri, 11 Jul 2014, Jan Hubicka wrote: > Hi, > since we both agreed offlining constructors from global decl stream is a good > idea, I went ahead and implemented it. I would like to followup by an > cleanups; for example the sections are still tagged as function sections, but > I > would like t