Re: Fix nb_iterations_estimate calculation in tree-vect-loop.c

2016-11-15 Thread Richard Biener
On Tue, Nov 15, 2016 at 1:57 PM, Richard Sandiford wrote: > vect_transform_loop has to reduce three iteration counts by > the vectorisation factor: nb_iterations_upper_bound, > nb_iterations_likely_upper_bound and nb_iterations_estimate. > All three are latch execution counts rather than loop body

Fix nb_iterations_estimate calculation in tree-vect-loop.c

2016-11-15 Thread Richard Sandiford
vect_transform_loop has to reduce three iteration counts by the vectorisation factor: nb_iterations_upper_bound, nb_iterations_likely_upper_bound and nb_iterations_estimate. All three are latch execution counts rather than loop body execution counts. The calculations were taking that into account