+2019-12-10 Martin Liska <mliska@suse.cz>
+
+ PR tree-optimization/92862
+ * predict.c (predict_paths_leading_to_edge): Fix typo from e to e2.
+ * tree-ssa-loop-niter.c (loop_only_exit_p): Return false
+ instead of true;
+
2019-12-09 David Malcolm <dmalcolm@redhat.com>
* gcc-rich-location.c
basic_block bb = e->src;
FOR_EACH_EDGE (e2, ei, bb->succs)
if (e2->dest != e->src && e2->dest != e->dest
- && !unlikely_executed_edge_p (e)
+ && !unlikely_executed_edge_p (e2)
&& !dominated_by_p (CDI_POST_DOMINATORS, e->src, e2->dest))
{
has_nonloop_edge = true;
break;
}
+
if (!has_nonloop_edge)
- {
- predict_paths_for_bb (bb, bb, pred, taken, auto_bitmap (), in_loop);
- }
+ predict_paths_for_bb (bb, bb, pred, taken, auto_bitmap (), in_loop);
else
predict_edge_def (e, pred, taken);
}
return false;
for (i = 0; i < loop->num_nodes; i++)
- {
- for (bsi = gsi_start_bb (body[i]); !gsi_end_p (bsi); gsi_next (&bsi))
- if (stmt_can_terminate_bb_p (gsi_stmt (bsi)))
- {
- return true;
- }
- }
+ for (bsi = gsi_start_bb (body[i]); !gsi_end_p (bsi); gsi_next (&bsi))
+ if (stmt_can_terminate_bb_p (gsi_stmt (bsi)))
+ return false;
return true;
}