This is the mail archive of the
mailing list for the GCC project.
r242475 - in /trunk/gcc: ChangeLog tree-vect-lo...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 16 Nov 2016 10:18:25 -0000
- Subject: r242475 - in /trunk/gcc: ChangeLog tree-vect-lo...
Date: Wed Nov 16 10:18:25 2016
New Revision: 242475
Fix nb_iterations_estimate calculation in tree-vect-loop.c
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 for the first two, but not for nb_iterations_estimate.
This patch updates the way the calculations are done to fix
this and to add a bit more commentary about what is going on.
2016-11-15 Richard Sandiford <email@example.com>
Alan Hayward <firstname.lastname@example.org>
David Sherwood <email@example.com>
* tree-vect-loop.c (vect_transform_loop): Protect the updates of
all three iteration counts with an any_* test. Use a single update
for each count. Fix the calculation of nb_iterations_estimate.