(fill_slots_from_thread): Update THREAD if deleting its first insn.
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 2 Oct 1994 18:58:47 +0000 (14:58 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 2 Oct 1994 18:58:47 +0000 (14:58 -0400)
From-SVN: r8203

gcc/reorg.c

index 4082ad8de51512c7f23d3041e6f96fedb9478f62..98b7f2990604416986ca7ba0cb968387883e53d9 100644 (file)
@@ -3265,6 +3265,9 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely,
              if (own_thread)
                {
                  update_block (trial, thread);
+                 if (trial == thread)
+                   thread = next_active_insn (thread);
+
                  delete_insn (trial);
                }
              else