diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-06 10:08:58 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-06 08:08:58 +0000 |
commit | 9c47c8ae3697ce201533ecd633d262c49cce2cf0 (patch) | |
tree | fbb42223609ea7429e1b28ee42c8e15b23efe534 /gcc/shrink-wrap.c | |
parent | 52261a21e8e74b98a943b2e9de1b9bef659bb28f (diff) | |
download | gcc-9c47c8ae3697ce201533ecd633d262c49cce2cf0.zip gcc-9c47c8ae3697ce201533ecd633d262c49cce2cf0.tar.gz gcc-9c47c8ae3697ce201533ecd633d262c49cce2cf0.tar.bz2 |
shrink-wrap.c (handle_simple_exit): Update profile.
* shrink-wrap.c (handle_simple_exit): Update profile.
(try_shrink_wrapping): Upate profile.
From-SVN: r248913
Diffstat (limited to 'gcc/shrink-wrap.c')
-rw-r--r-- | gcc/shrink-wrap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c index eaa1522..3cad776 100644 --- a/gcc/shrink-wrap.c +++ b/gcc/shrink-wrap.c @@ -561,9 +561,11 @@ handle_simple_exit (edge e) BB_END (old_bb) = end; redirect_edge_succ (e, new_bb); + new_bb->count = e->count; + new_bb->frequency = EDGE_FREQUENCY (e); e->flags |= EDGE_FALLTHRU; - e = make_edge (new_bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0); + e = make_single_succ_edge (new_bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0); } e->flags &= ~EDGE_FALLTHRU; @@ -981,6 +983,7 @@ try_shrink_wrapping (edge *entry_edge, rtx_insn *prologue_seq) basic_block new_bb = create_empty_bb (EXIT_BLOCK_PTR_FOR_FN (cfun)->prev_bb); BB_COPY_PARTITION (new_bb, pro); + new_bb->count = profile_count::zero (); if (dump_file) fprintf (dump_file, "Made prologue block %d\n", new_bb->index); |