]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-if-conv.c (combine_blocks): Use make_single_succ_edge to keep profile consistent.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 1 Jul 2017 14:55:28 +0000 (16:55 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 1 Jul 2017 14:55:28 +0000 (14:55 +0000)
* tree-if-conv.c (combine_blocks): Use make_single_succ_edge
to keep profile consistent.

From-SVN: r249870

gcc/ChangeLog
gcc/tree-if-conv.c

index 85957034a3c407f0bd47cb721dd454647c5cc502..b4e5948b8f47620b29a3dc1f7a2bd2ab3a8b2e2e 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
+
+       * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
+       to keep profile consistent.
+
 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
 
        * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
index dbacc6e195025e9f5e0107dd6ccb1d9157fe8b5d..28529c90a61fc444fbb87e439d43acfbb1770eb9 100644 (file)
@@ -2403,7 +2403,7 @@ combine_blocks (struct loop *loop)
       if (exit_bb != loop->header)
        {
          /* Connect this node to loop header.  */
-         make_edge (loop->header, exit_bb, EDGE_FALLTHRU);
+         make_single_succ_edge (loop->header, exit_bb, EDGE_FALLTHRU);
          set_immediate_dominator (CDI_DOMINATORS, exit_bb, loop->header);
        }