Re: Maintain loop iteration count estimates

2016-06-10 Thread Jan Hubicka
> On Fri, 10 Jun 2016, Jan Hubicka wrote: > > > > > I always interpreted the estimated number of iterations to be the same > > > > as > > > > expected number of iterations and to be same as average. So it seems > > > > to be > > > > sane to feed the info from profile. > > > > > > > > I am thin

Re: Maintain loop iteration count estimates

2016-06-10 Thread Richard Biener
On Fri, 10 Jun 2016, Jan Hubicka wrote: > > > I always interpreted the estimated number of iterations to be the same as > > > expected number of iterations and to be same as average. So it seems to > > > be > > > sane to feed the info from profile. > > > > > > I am thinking to add the histogram

Re: Maintain loop iteration count estimates

2016-06-10 Thread Jan Hubicka
> > I always interpreted the estimated number of iterations to be the same as > > expected number of iterations and to be same as average. So it seems to be > > sane to feed the info from profile. > > > > I am thinking to add the histograms, yes. It is midly anoying to do so > > becuase > > one

Re: Maintain loop iteration count estimates

2016-06-10 Thread Richard Biener
On Thu, 9 Jun 2016, Jan Hubicka wrote: > > On Thu, 9 Jun 2016, Jan Hubicka wrote: > > > > > Hi, > > > after we read the profile, we know expected number of iterations. > > > > We know the average ;) It may make sense to add some histogram > > value profiling for niter now that we should easily

Re: Maintain loop iteration count estimates

2016-06-09 Thread Jan Hubicka
> On Thu, 9 Jun 2016, Jan Hubicka wrote: > > > Hi, > > after we read the profile, we know expected number of iterations. > > We know the average ;) It may make sense to add some histogram > value profiling for niter now that we should easily able to do so. I always interpreted the estimated num

Re: Maintain loop iteration count estimates

2016-06-09 Thread Richard Biener
On Thu, 9 Jun 2016, Jan Hubicka wrote: > Hi, > after we read the profile, we know expected number of iterations. We know the average ;) It may make sense to add some histogram value profiling for niter now that we should easily able to do so. > Currently we use profile each time estimate_number

Maintain loop iteration count estimates

2016-06-09 Thread Jan Hubicka
Hi, after we read the profile, we know expected number of iterations. Currently we use profile each time estimate_numbers_of_iterations_loop is called to recompute this value. This is not very safe because the profile may be misupdated. It seems safer to compute it at once and maintain thorough t