From 7b95ed64c90de3f9e8a2eb47f8ddd9a8344e559b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 5 Jun 2017 21:14:49 +0200 Subject: [PATCH] * shring-wrap.c: Revert accidental commit. From-SVN: r248893 --- gcc/ChangeLog | 4 ++++ gcc/shrink-wrap.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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; -- 2.30.2