From e39df5466d0cde13fd47e612f20ef2b0ac117e2b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 1 Jul 2017 16:56:21 +0200 Subject: [PATCH] * trans-mem.c (split_bb_make_tm_edge): Update profile. From-SVN: r249871 --- gcc/ChangeLog | 4 ++++ gcc/trans-mem.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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) -- 2.30.2