aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1999-02-05 04:43:22 -0700
committerJeff Law <law@gcc.gnu.org>1999-02-05 04:43:22 -0700
commit342d9c89f6b404a8d3ef56a61705982f1d70f719 (patch)
tree2d35ce1a5fa023aa69e324a227b7f55bc5139ea6
parent29ed8a2760fc8eafe87a10cb08fbb1cd0c653ce6 (diff)
downloadgcc-342d9c89f6b404a8d3ef56a61705982f1d70f719.zip
gcc-342d9c89f6b404a8d3ef56a61705982f1d70f719.tar.gz
gcc-342d9c89f6b404a8d3ef56a61705982f1d70f719.tar.bz2
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
-rw-r--r--gcc/haifa-sched.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index b0d34b6..af9161f 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -860,6 +860,12 @@ add_dependence (insn, elem, dep_type)
if (insn == elem)
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
make the dependence point to the last insn of the sequence.
When HAVE_cc0, it is possible for NOTEs to exist between users and