From e0fd3e7af44dbea3d01bbc8df3a1f3114d993f4e Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 10 Mar 2003 12:59:12 +0000 Subject: cfg.c (unchecked_make_edge): New. * cfg.c (unchecked_make_edge): New. (cached_make_edge): Use it. * basic-block.h (unchecked_make_edge): Declare. * cfglayout.c (cfg_layout_duplicate_bb): Use it. From-SVN: r64077 --- gcc/cfglayout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/cfglayout.c') diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 04ba2ec..1f4f8fc 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -980,7 +980,10 @@ cfg_layout_duplicate_bb (bb, e) new_bb->flags = bb->flags; for (s = bb->succ; s; s = s->succ_next) { - n = make_edge (new_bb, s->dest, s->flags); + /* Since we are creating edges from a new block to successors + of another block (which therefore are known to be disjoint), there + is no need to actually check for duplicated edges. */ + n = unchecked_make_edge (new_bb, s->dest, s->flags); n->probability = s->probability; if (new_count) /* Take care for overflows! */ -- cgit v1.1