From afb7cf18071d83e6849b39398d0aa1be86019c3e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 29 Nov 2004 17:58:27 +0000 Subject: cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using EDGE_COUNT. * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using EDGE_COUNT. From-SVN: r91475 --- gcc/cfgrtl.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gcc/cfgrtl.c') diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 818c5b8..a439b8d 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1201,12 +1201,6 @@ rtl_tidy_fallthru_edge (edge e) { rtx q; basic_block b = e->src, c = b->next_bb; - edge e2; - edge_iterator ei; - - FOR_EACH_EDGE (e2, ei, b->succs) - if (e == e2) - break; /* ??? In a late-running flow pass, other folks may have deleted basic blocks by nopping out blocks, leaving multiple BARRIERs between here @@ -1229,7 +1223,7 @@ rtl_tidy_fallthru_edge (edge e) if (JUMP_P (q) && onlyjump_p (q) && (any_uncondjump_p (q) - || (EDGE_SUCC (b, 0) == e && ei.index == EDGE_COUNT (b->succs) - 1))) + || EDGE_COUNT (b->succs) == 1)) { #ifdef HAVE_cc0 /* If this was a conditional jump, we need to also delete -- cgit v1.1