From: Jan Hubicka Date: Mon, 5 Jun 2017 19:14:49 +0000 (+0200) Subject: * shring-wrap.c: Revert accidental commit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b95ed64c90de3f9e8a2eb47f8ddd9a8344e559b;p=gcc.git * shring-wrap.c: Revert accidental commit. From-SVN: r248893 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0006c82454c..ba5f9434105 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-06-05 Jan Hubicka + + * shring-wrap.c: Revert accidental commit. + 2017-06-05 Volker Reichelt * doc/invoke.texi (-Wduplicated-branches): Add to warning list. diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c index fb235e2bc9f..eaa1522bb0d 100644 --- a/gcc/shrink-wrap.c +++ b/gcc/shrink-wrap.c @@ -561,11 +561,9 @@ handle_simple_exit (edge e) BB_END (old_bb) = end; redirect_edge_succ (e, new_bb); - new_bb->count = e->count; - new_bb->frequency = e->frequency; e->flags |= EDGE_FALLTHRU; - e = make_single_succ_edge (new_bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0); + e = make_edge (new_bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0); } e->flags &= ~EDGE_FALLTHRU;