Commit 489e2090 by Jim Wilson

(priority): Handle INSN_DELETED_P insns, in addition to

insns which were deleted by being turned into notes.

From-SVN: r6272
parent 5b22bee8
...@@ -1441,11 +1441,12 @@ priority (insn) ...@@ -1441,11 +1441,12 @@ priority (insn)
{ {
rtx x = XEXP (prev, 0); rtx x = XEXP (prev, 0);
/* A dependence pointing to a note is always obsolete, because /* A dependence pointing to a note or deleted insn is always
sched_analyze_insn will have created any necessary new dependences obsolete, because sched_analyze_insn will have created any
which replace it. Notes can be created when instructions are necessary new dependences which replace it. Notes and deleted
deleted by insn splitting, or by register allocation. */ insns can be created when instructions are deleted by insn
if (GET_CODE (x) == NOTE) splitting, or by register allocation. */
if (GET_CODE (x) == NOTE || INSN_DELETED_P (x))
{ {
remove_dependence (insn, x); remove_dependence (insn, x);
continue; continue;
......
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