Commit cb6b1bdf by Jan Hubicka Committed by Jan Hubicka

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
parent 4177437e
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
......
......@@ -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)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment