Hi,

> > The header block of the loop is bb 4, the latch block is bb 3:
> > ...
> > (gdb) p loop.header.index
> > $4 = 4
> > (gdb) p loop.latch.index
> > $5 = 3
> > ...
> > 
> > The number of times the latch edge is executed, is 10.
> > 
> > But loop->nb_iterations_upper_bound, or max_niter is 11:

this is a bit strange, it looks like the # of iterations estimation is setting
nb_iterations_upper_bound too conservatively (or I gave 
nb_iterations_upper_bound
a different semantics than I remember -- but both my memory and the comment in 
cfgloop.h
suggest that nb_iterations_upper_bound >= nb_iterations, i.e., that it should 
be 10 in your
example),

Zdenek

Reply via email to