diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2016-05-19 17:50:56 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2016-05-19 15:50:56 +0000 |
commit | cb6b1bdffe5b81243f27dc273e930558acdfff38 (patch) | |
tree | a6e7cb325c2b6092ec30588947995f7f476a1eaf /gcc | |
parent | 4177437ead62c0c74d560f3611b3583078f59688 (diff) | |
download | gcc-cb6b1bdffe5b81243f27dc273e930558acdfff38.zip gcc-cb6b1bdffe5b81243f27dc273e930558acdfff38.tar.gz gcc-cb6b1bdffe5b81243f27dc273e930558acdfff38.tar.bz2 |
tree-vect-loop.c (vect_analyze_loop_2): Use also max_loop_iterations_int.
* tree-vect-loop.c (vect_analyze_loop_2): Use also
max_loop_iterations_int.
From-SVN: r236478
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vect-loop.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4900c7e..3d68ae1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-19 Jan Hubicka <hubicka@ucw.cz> + + * tree-vect-loop.c (vect_analyze_loop_2): Use also + max_loop_iterations_int. + 2016-05-19 Marek Polacek <polacek@redhat.com> PR tree-optimization/71031 diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 67053af..153372b 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -2065,6 +2065,8 @@ start_over: estimated_niter = estimated_stmt_executions_int (LOOP_VINFO_LOOP (loop_vinfo)); + if (estimated_niter == -1) + estimated_niter = max_niter; if (estimated_niter != -1 && ((unsigned HOST_WIDE_INT) estimated_niter <= MAX (th, (unsigned)min_profitable_estimate))) |