From ef3e98869075132505d8e1e1c9deaa5fee42e0eb Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 23 Mar 2003 12:40:26 -0800 Subject: cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps before flow2. * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps before flow2. * cfgrtl.c (try_redirect_by_replacing_jump): Similarly. From-SVN: r64754 --- gcc/cfgcleanup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/cfgcleanup.c') diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 42dc0a9..23436d5 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -1791,7 +1791,9 @@ try_optimize_cfg (mode) /* If the jump insn has side effects, we can't kill the edge. */ && (GET_CODE (b->end) != JUMP_INSN - || simplejump_p (b->end)) + || (flow2_completed + ? simplejump_p (b->end) + : onlyjump_p (b->end))) && (next = merge_blocks (s, b, c, mode))) { b = next; -- cgit v1.1