From 1099198d0086da9be8176463700261a2bf529924 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 1 Jul 2017 16:55:28 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-if-conv.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); } -- 2.30.2