aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/trans-mem.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b4e5948..a333d06 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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.
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index f747e05..eb03560 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)