*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Tue, 2 Jun 1992 21:28:08 +0000 (21:28 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 2 Jun 1992 21:28:08 +0000 (21:28 +0000)
From-SVN: r1141

gcc/cse.c

index 4a51d42..c863d3c 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7432,6 +7432,14 @@ cse_basic_block (from, to, next_branch, around_loop)
          if (JUMP_LABEL (insn) == to)
            to_usage = 1;
 
+         /* Maybe TO was deleted because the jump is unconditional.
+            If so, there is nothing left in this basic block.  */
+         /* ??? Perhaps it would be smarter to set TO
+            to whatever follows this insn, 
+            and pretend the basic block had always ended here.  */
+         if (INSN_DELETED_P (to))
+           break;
+
          insn = PREV_INSN (to);
        }