aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-07-01 14:29:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-07-01 12:29:55 +0000
commita4f20288d8d42fff6bb3487aa8f56e5b9b892656 (patch)
treed02e11ff2da85f953100c76ed4b645efdefae75f /gcc
parentc7be78e9b3932307536faaedc52e4c553eaf7dd6 (diff)
downloadgcc-a4f20288d8d42fff6bb3487aa8f56e5b9b892656.zip
gcc-a4f20288d8d42fff6bb3487aa8f56e5b9b892656.tar.gz
gcc-a4f20288d8d42fff6bb3487aa8f56e5b9b892656.tar.bz2
bb-reorder.c (fix_up_crossing_landing_pad, [...]): Use make_single_succ_edge to keep profile consistent.
* bb-reorder.c (fix_up_crossing_landing_pad, fix_crossing_conditional_branches): Use make_single_succ_edge to keep profile consistent. From-SVN: r249868
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/bb-reorder.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c51c18e..4ad7c00 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2017-07-01 Jan Hubicka <hubicka@ucw.cz>
+ * bb-reorder.c (fix_up_crossing_landing_pad,
+ fix_crossing_conditional_branches): Use make_single_succ_edge
+ to keep profile consistent.
+
+2017-07-01 Jan Hubicka <hubicka@ucw.cz>
+
* tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
to update profile.
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index cfb7242..f8ef913 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -1450,7 +1450,7 @@ fix_up_crossing_landing_pad (eh_landing_pad old_lp, basic_block old_bb)
emit_barrier_after_bb (new_bb);
- make_edge (new_bb, post_bb, 0);
+ make_single_succ_edge (new_bb, post_bb, 0);
/* Make sure new bb is in the other partition. */
new_partition = BB_PARTITION (old_bb);
@@ -2118,7 +2118,7 @@ fix_crossing_conditional_branches (void)
for 'dest'. */
if (EDGE_COUNT (new_bb->succs) == 0)
- new_edge = make_edge (new_bb, dest, 0);
+ new_edge = make_single_succ_edge (new_bb, dest, 0);
else
new_edge = EDGE_SUCC (new_bb, 0);