+2017-02-05 Jan Hubicka <hubicka@ucw.cz>
+
+ * tree-eh.c (lower_resx): Sanitize profile.
+ (cleanup_empty_eh_move_lp): Likewise.
+
2017-02-05 Jan Hubicka <hubicka@ucw.cz>
PR tree-ssa/79347
e = single_succ_edge (bb);
gcc_assert (e->flags & EDGE_EH);
e->flags = (e->flags & ~EDGE_EH) | EDGE_FALLTHRU;
+ e->probability = REG_BR_PROB_BASE;
+ e->count = bb->count;
/* If there are no more EH users of the landing pad, delete it. */
FOR_EACH_EDGE (e, ei, e->dest->preds)
/* Clean up E_OUT for the fallthru. */
e_out->flags = (e_out->flags & ~EDGE_EH) | EDGE_FALLTHRU;
e_out->probability = REG_BR_PROB_BASE;
+ e_out->count = e_out->src->count;
}
/* A subroutine of cleanup_empty_eh. Handle more complex cases of