* shring-wrap.c: Revert accidental commit.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 5 Jun 2017 19:14:49 +0000 (21:14 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 5 Jun 2017 19:14:49 +0000 (19:14 +0000)
From-SVN: r248893

gcc/ChangeLog
gcc/shrink-wrap.c

index 0006c82454c872097b7b1d746ba2797fc024dca2..ba5f9434105493c8e76abe89745b5b6b4f979b46 100644 (file)
@@ -1,3 +1,7 @@
+2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
+
+       * shring-wrap.c: Revert accidental commit.
+
 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
 
        * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
index fb235e2bc9ffb59e2e05a80f4e266537ea0a8d7c..eaa1522bb0db28ce90905f9434e28175b09b74cf 100644 (file)
@@ -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;