From: Jan Hubicka Date: Sat, 1 Jul 2017 14:56:21 +0000 (+0200) Subject: * trans-mem.c (split_bb_make_tm_edge): Update profile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e39df5466d0cde13fd47e612f20ef2b0ac117e2b;p=gcc.git * trans-mem.c (split_bb_make_tm_edge): Update profile. From-SVN: r249871 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b4e5948b8f4..a333d06bda0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-07-01 Jan Hubicka + + * trans-mem.c (split_bb_make_tm_edge): Update profile. + 2017-07-01 Jan Hubicka * tree-if-conv.c (combine_blocks): Use make_single_succ_edge diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index f747e05bd10..eb03560be26 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -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)