* loop-dolop.c (doloop_optimize): Us likely max iteration bound.
* tree-parloops.c (parallelize_loops): likewise.
* tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
tree_unswitch_outer_loop): likewise.
From-SVN: r236998
+2016-06-01 Jan Hubicka <hubicka@ucw.cz>
+
+ * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
+ * tree-parloops.c (parallelize_loops): likewise.
+ * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
+ tree_unswitch_outer_loop): likewise.
+
2016-06-01 Jakub Jelinek <jakub@redhat.com>
PR middle-end/71371
est_niter = get_estimated_loop_iterations_int (loop);
if (est_niter == -1)
- est_niter = get_max_loop_iterations_int (loop);
+ est_niter = get_likely_max_loop_iterations_int (loop);
if (est_niter >= 0 && est_niter < 3)
{
estimated = estimated_stmt_executions_int (loop);
if (estimated == -1)
- estimated = max_stmt_executions_int (loop);
+ estimated = likely_max_stmt_executions_int (loop);
/* FIXME: Bypass this check as graphite doesn't update the
count and frequency correctly now. */
if (!flag_loop_parallelize_all
for unswitching. */
iterations = estimated_loop_iterations_int (loop);
if (iterations < 0)
- iterations = max_loop_iterations_int (loop);
+ iterations = likely_max_loop_iterations_int (loop);
if (iterations >= 0 && iterations <= 1)
{
if (dump_file && (dump_flags & TDF_DETAILS))
for unswitching. */
iterations = estimated_loop_iterations_int (loop);
if (iterations < 0)
- iterations = max_loop_iterations_int (loop);
+ iterations = likely_max_loop_iterations_int (loop);
if (iterations >= 0 && iterations <= 1)
{
if (dump_file && (dump_flags & TDF_DETAILS))