Commit 8f54d2ff by Jan Hubicka Committed by Jan Hubicka

* flow.c (delete_noop_moves): Do not confuse libcall regions.

From-SVN: r44290
parent 016c22b5
Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
* flow.c (delete_noop_moves): Do not confuse libcall regions.
2001-07-23 Richard Henderson <rth@redhat.com> 2001-07-23 Richard Henderson <rth@redhat.com>
* flow.c (try_simplify_condjump): Use tidy_fallthru_edge. * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
......
...@@ -4327,9 +4327,11 @@ delete_noop_moves (f) ...@@ -4327,9 +4327,11 @@ delete_noop_moves (f)
next = NEXT_INSN (insn); next = NEXT_INSN (insn);
if (INSN_P (insn) && noop_move_p (insn)) if (INSN_P (insn) && noop_move_p (insn))
{ {
if (insn == bb->end) /* Do not call flow_delete_insn here to not confuse backward
bb->end = PREV_INSN (insn); pointers of LIBCALL block. */
flow_delete_insn (insn); PUT_CODE (insn, NOTE);
NOTE_LINE_NUMBER (insn) = NOTE_INSN_DELETED;
NOTE_SOURCE_FILE (insn) = 0;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment