summaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-23 20:40:26 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-23 20:40:26 +0000
commit8583bf9c2cac6fb307dafba8a3c0445911b1aa76 (patch)
treed834a7d0bea7c7fed3f67f846807bb85f2f13986 /gcc/cfgcleanup.c
parentaa9f1e71eff9cb0aad9d903b63ec8f0adf484813 (diff)
downloadgcc-8583bf9c2cac6fb307dafba8a3c0445911b1aa76.tar.gz
* cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
before flow2. * cfgrtl.c (try_redirect_by_replacing_jump): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 42dc0a9e4c5..23436d599f1 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;