summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-05 11:43:22 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-05 11:43:22 +0000
commiteab71b5a82dad72201f123d0e23c24ef144287da (patch)
tree2d35ce1a5fa023aa69e324a227b7f55bc5139ea6 /gcc/haifa-sched.c
parent9af93b8103d6d42a83b56e81d9bc2209ce4391b0 (diff)
downloadgcc-eab71b5a82dad72201f123d0e23c24ef144287da.tar.gz
h
* haifa-sched.c (add_dependence): Do not add a dependency on a note. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25044 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-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 b0d34b6f67d..af9161fb5be 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