aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 00eb80a..4413c02 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -941,9 +941,7 @@ try_crossjump_to_edge (mode, e1, e2)
/* Update CFG. */
while (src1->succ)
remove_edge (src1->succ);
- make_edge (NULL, src1, redirect_to, 0);
- src1->succ->probability = REG_BR_PROB_BASE;
- src1->succ->count = src1->count;
+ make_single_succ_edge (src1, redirect_to, 0);
return true;
}