(jump_optimize): When deleting an insn after a jump, update

reallabelprev since it might point to the deleted insn.

From-SVN: r6328
This commit is contained in:
Richard Kenner 1993-12-26 08:37:13 -05:00
parent 79644f0689
commit 5954c8a8b7
1 changed files with 3 additions and 0 deletions

View File

@ -869,6 +869,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
emit_insn_after_with_line_notes (PATTERN (temp),
PREV_INSN (insn), temp);
delete_insn (temp);
reallabelprev = prev_active_insn (JUMP_LABEL (insn));
}
}
@ -916,6 +917,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
PREV_INSN (insn), temp3);
delete_insn (temp);
delete_insn (temp3);
reallabelprev = prev_active_insn (JUMP_LABEL (insn));
}
}
@ -967,6 +969,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
PREV_INSN (insn), temp3);
delete_insn (temp);
delete_insn (temp3);
reallabelprev = prev_active_insn (JUMP_LABEL (insn));
}
}
#endif /* HAVE_cc0 */