diff options
author | Jan Hubicka <jh@suse.cz> | 2003-04-07 14:36:59 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-04-07 12:36:59 +0000 |
commit | cde1d5bf91c64fd33b2b9ddd35cdc948344baed4 (patch) | |
tree | 99129eeef547cc25935d6cd0742982307faf653c /gcc/cfglayout.c | |
parent | 30da09694b77a86b0790f9480cf934120c5258d3 (diff) | |
download | gcc-cde1d5bf91c64fd33b2b9ddd35cdc948344baed4.tar.gz |
re PR rtl-optimization/10024 ([HP-PA] inline optimization ICE)
PR opt/10024
* cfglayout.c (cfg_layout_redirect_edge):
Redirect any branch edges unified with the fallthru one.
* cfgrtl.c (force_nonfallthru_and_redirect): Do not special
case fallthru edges when called via cfglayout.c
From-SVN: r65330
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index b5be7ca29b3..3420bd1322a 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -904,6 +904,13 @@ cfg_layout_redirect_edge (e, dest) src->next_bb = NULL; if (e->flags & EDGE_FALLTHRU) { + /* Redirect any branch edges unified with the fallthru one. */ + if (GET_CODE (src->end) == JUMP_INSN + && JUMP_LABEL (src->end) == e->dest->head) + { + if (!redirect_jump (src->end, block_label (dest), 0)) + abort (); + } /* In case we are redirecting fallthru edge to the branch edge of conditional jump, remove it. */ if (src->succ->succ_next |