From: Jan Hubicka Date: Sat, 1 Jul 2017 14:55:28 +0000 (+0200) Subject: tree-if-conv.c (combine_blocks): Use make_single_succ_edge to keep profile consistent. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1099198d0086da9be8176463700261a2bf529924;p=gcc.git tree-if-conv.c (combine_blocks): Use make_single_succ_edge to keep profile consistent. * tree-if-conv.c (combine_blocks): Use make_single_succ_edge to keep profile consistent. From-SVN: r249870 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85957034a3c..b4e5948b8f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-07-01 Jan Hubicka + + * tree-if-conv.c (combine_blocks): Use make_single_succ_edge + to keep profile consistent. + 2017-07-01 Jan Hubicka * cfgrtl.c (rtl_flow_call_edges_add): Update profile. diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index dbacc6e1950..28529c90a61 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -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); }