From cb6b1bdffe5b81243f27dc273e930558acdfff38 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 19 May 2016 17:50:56 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-loop.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4900c7e2d46..3d68ae1c237 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-19 Jan Hubicka + + * tree-vect-loop.c (vect_analyze_loop_2): Use also + max_loop_iterations_int. + 2016-05-19 Marek Polacek PR tree-optimization/71031 diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 67053af3246..153372b4d3d 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))) -- 2.30.2