Commit e39df546 by Jan Hubicka Committed by Jan Hubicka

* trans-mem.c (split_bb_make_tm_edge): Update profile.

From-SVN: r249871
parent 1099198d
2017-07-01 Jan Hubicka <hubicka@ucw.cz>
* trans-mem.c (split_bb_make_tm_edge): Update profile.
2017-07-01 Jan Hubicka <hubicka@ucw.cz>
* tree-if-conv.c (combine_blocks): Use make_single_succ_edge
to keep profile consistent.
......
......@@ -3211,7 +3211,12 @@ split_bb_make_tm_edge (gimple *stmt, basic_block dest_bb,
edge e = split_block (bb, stmt);
*pnext = gsi_start_bb (e->dest);
}
make_edge (bb, dest_bb, EDGE_ABNORMAL);
edge e = make_edge (bb, dest_bb, EDGE_ABNORMAL);
if (e)
{
e->probability = profile_probability::guessed_never ();
e->count = profile_count::guessed_zero ();
}
// Record the need for the edge for the benefit of the rtl passes.
if (cfun->gimple_df->tm_restart == NULL)
......
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