diff options
author | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | 2002-06-14 18:58:10 +0000 |
---|---|---|
committer | Franz Sirl <sirl@gcc.gnu.org> | 2002-06-14 18:58:10 +0000 |
commit | be202ec201847a2fbe22fbd7ecf7a15fc51fa61a (patch) | |
tree | 29cb9e5ec94f8fec411037a41ebb75e953397eb2 /gcc/sched-deps.c | |
parent | 6203ef88a6591be899fe5425e21aa6bccf6a8c10 (diff) | |
download | gcc-be202ec201847a2fbe22fbd7ecf7a15fc51fa61a.zip gcc-be202ec201847a2fbe22fbd7ecf7a15fc51fa61a.tar.gz gcc-be202ec201847a2fbe22fbd7ecf7a15fc51fa61a.tar.bz2 |
rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
* sched-deps.c (add_dependence): Likewise.
(group_leader): Likewise.
* sched-rgn.c (init_ready_list): Likewise.
* doc/rtl.texi: Adjust accordingly.
From-SVN: r54622
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 985559f..a5e9c08 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -222,8 +222,7 @@ add_dependence (insn, elem, dep_type) setters of the condition codes, so we must skip past notes here. Otherwise, NOTEs are impossible here. */ next = next_nonnote_insn (elem); - if (next && SCHED_GROUP_P (next) - && GET_CODE (next) != CODE_LABEL) + if (next && INSN_P (next) && SCHED_GROUP_P (next)) { /* Notes will never intervene here though, so don't bother checking for them. */ @@ -235,8 +234,8 @@ add_dependence (insn, elem, dep_type) rtx nnext; while ((nnext = next_nonnote_insn (next)) != NULL - && SCHED_GROUP_P (nnext) - && GET_CODE (nnext) != CODE_LABEL) + && INSN_P (nnext) + && SCHED_GROUP_P (nnext)) next = nnext; /* Again, don't depend an insn on itself. */ @@ -448,7 +447,7 @@ group_leader (insn) prev = insn; insn = next_nonnote_insn (insn); } - while (insn && SCHED_GROUP_P (insn) && (GET_CODE (insn) != CODE_LABEL)); + while (insn && INSN_P (insn) && SCHED_GROUP_P (insn)); return prev; } |