/* Add INSN into the doubly-linked list after insn AFTER. This and
the next should be the only functions called to insert an insn once
- delay slots have been filled since only they knows how to update a
+ delay slots have been filled since only they know how to update a
SEQUENCE. */
void
{
rtx next = NEXT_INSN (after);
+ if (INSN_DELETED_P (after))
+ abort ();
+
NEXT_INSN (insn) = next;
PREV_INSN (insn) = after;
/* Add INSN into the doubly-linked list before insn BEFORE. This and
the previous should be the only functions called to insert an insn once
- delay slots have been filled since only they knows how to update a
+ delay slots have been filled since only they know how to update a
SEQUENCE. */
void
{
rtx prev = PREV_INSN (before);
+ if (INSN_DELETED_P (before))
+ abort ();
+
PREV_INSN (insn) = prev;
NEXT_INSN (insn) = before;