Commit 342d9c89 by Jeff Law

haifa-sched.c (add_dependence): Do not add a dependency on a note.

h
        * haifa-sched.c (add_dependence): Do not add a dependency on a
        note.

From-SVN: r25044
parent 29ed8a27
...@@ -860,6 +860,12 @@ add_dependence (insn, elem, dep_type) ...@@ -860,6 +860,12 @@ add_dependence (insn, elem, dep_type)
if (insn == elem) if (insn == elem)
return; return;
/* We can get a dependency on deleted insns due to optimizations in
the register allocation and reloading or due to splitting. Any
such dependency is useless and can be ignored. */
if (GET_CODE (elem) == NOTE)
return;
/* If elem is part of a sequence that must be scheduled together, then /* If elem is part of a sequence that must be scheduled together, then
make the dependence point to the last insn of the sequence. make the dependence point to the last insn of the sequence.
When HAVE_cc0, it is possible for NOTEs to exist between users and When HAVE_cc0, it is possible for NOTEs to exist between users and
......
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