aboutsummaryrefslogtreecommitdiff
path: root/gcc/trans-mem.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-07-01 16:56:21 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-07-01 14:56:21 +0000
commite39df5466d0cde13fd47e612f20ef2b0ac117e2b (patch)
tree9f63aaeb965301f26f1dd3429a321c289cf30a62 /gcc/trans-mem.c
parent1099198d0086da9be8176463700261a2bf529924 (diff)
downloadgcc-e39df5466d0cde13fd47e612f20ef2b0ac117e2b.zip
gcc-e39df5466d0cde13fd47e612f20ef2b0ac117e2b.tar.gz
gcc-e39df5466d0cde13fd47e612f20ef2b0ac117e2b.tar.bz2
* trans-mem.c (split_bb_make_tm_edge): Update profile.
From-SVN: r249871
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r--gcc/trans-mem.c7
1 files changed, 6 insertions, 1 deletions
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)