From 342d9c89f6b404a8d3ef56a61705982f1d70f719 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 5 Feb 1999 04:43:22 -0700 Subject: [PATCH] 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 --- gcc/haifa-sched.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.30.2