diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-16 08:54:07 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-16 08:54:07 +0000 |
commit | 343dd8feb130e4fe9ef201b0b60642e139239bcf (patch) | |
tree | c976a223e7c4ddaed359d255ee0027bc70a48623 /gcc/haifa-sched.c | |
parent | 0251be355e27f2b03054165273acd241f384ffdf (diff) | |
download | gcc-343dd8feb130e4fe9ef201b0b60642e139239bcf.tar.gz |
* haifa-sched.c (compute_block_forward_dependencies): Only check
for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30042 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 3d1bd297255..5e4c1ba4363 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -6093,11 +6093,18 @@ compute_block_forward_dependences (bb) if (x != XEXP (link, 0)) continue; - /* Ignore dependences upon deleted insn. */ - if (GET_CODE (x) == NOTE || INSN_DELETED_P (x)) - continue; - if (find_insn_list (insn, INSN_DEPEND (x))) - continue; +#ifdef ENABLE_CHECKING + /* If add_dependence is working properly there should never + be notes, deleted insns or duplicates in the backward + links. Thus we need not check for them here. + + However, if we have enabled checking we might as well go + ahead and verify that add_dependence worked properly. */ + if (GET_CODE (x) == NOTE + || INSN_DELETED_P (x) + || find_insn_list (insn, INSN_DEPEND (x))) + abort (); +#endif new_link = alloc_INSN_LIST (insn, INSN_DEPEND (x)); |