PR optimization/14229
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Feb 2004 09:51:56 +0000 (09:51 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Feb 2004 09:51:56 +0000 (09:51 +0000)
* cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78605 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cfgrtl.c

index 8722e94..6acbafb 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       PR optimization/14229
+       * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
+
 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
 
        * fold-const.c (fold): Strip NOPs that change the signedness
index f35263f..35d7c9e 100644 (file)
@@ -1130,11 +1130,6 @@ rtl_tidy_fallthru_edge (edge e)
   rtx q;
   basic_block b = e->src, c = b->next_bb;
 
-  /* If the jump insn has side effects, we can't tidy the edge.  */
-  if (GET_CODE (BB_END (b)) == JUMP_INSN
-      && !onlyjump_p (BB_END (b)))
-    return;
-
   /* ??? In a late-running flow pass, other folks may have deleted basic
      blocks by nopping out blocks, leaving multiple BARRIERs between here
      and the target label. They ought to be chastized and fixed.