+2017-06-16 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
+ profile.
+ (try_unroll_loop_completely): Fix reporting.
+
2017-06-16 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
}
if (!loop_exit_edge_p (loop, exit_edge))
exit_edge = EDGE_SUCC (bb, 1);
+ exit_edge->probability = REG_BR_PROB_BASE;
+ exit_edge->count = exit_edge->src->count;
gcc_checking_assert (loop_exit_edge_p (loop, exit_edge));
gcond *cond_stmt = as_a <gcond *> (elt->stmt);
if (exit_edge->flags & EDGE_TRUE_VALUE)
loop->num);
return false;
}
- dump_printf_loc (report_flags, locus,
- "loop turned into non-loop; it never loops.\n");
+ if (!n_unroll)
+ dump_printf_loc (report_flags, locus,
+ "loop turned into non-loop; it never loops.\n");
initialize_original_copy_tables ();
auto_sbitmap wont_exit (n_unroll + 1);