summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-07-01 16:55:28 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-07-01 14:55:28 +0000
commit1099198d0086da9be8176463700261a2bf529924 (patch)
treeef5124f92e6c2eb937a388eb3d19ef10b5276354 /gcc
parent36d95aa8913ae43c998e0917711856d307cc5f00 (diff)
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-if-conv.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 85957034a3c..b4e5948b8f4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
* tree-cfg.c (gimple_flow_call_edges_add): Likewise.
* profile-count.h (max_safe_multiplier): Make unsigned.
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);
}