Commit 706c5c2f by Jeffrey A Law Committed by Jeff Law

haifa-sched.c (compute_block_forward_dependencies): Only check for notes,…

haifa-sched.c (compute_block_forward_dependencies): Only check for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.

 	* haifa-sched.c (compute_block_forward_dependencies): Only check
	for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.

From-SVN: r30042
parent c2d88e84
Sat Oct 16 02:48:22 1999 Jeffrey A Law (law@cygnus.com)
* haifa-sched.c (compute_block_forward_dependencies): Only check
for notes, deleted insns and duplicates if ENABLE_CHECKING is defined.
Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com> Sat Oct 16 00:07:01 1999 Richard Henderson <rth@cygnus.com>
* gcse.c (hash_expr_1): Add in MEM_ALIAS_SET. * gcse.c (hash_expr_1): Add in MEM_ALIAS_SET.
......
...@@ -6093,11 +6093,18 @@ compute_block_forward_dependences (bb) ...@@ -6093,11 +6093,18 @@ compute_block_forward_dependences (bb)
if (x != XEXP (link, 0)) if (x != XEXP (link, 0))
continue; continue;
/* Ignore dependences upon deleted insn. */ #ifdef ENABLE_CHECKING
if (GET_CODE (x) == NOTE || INSN_DELETED_P (x)) /* If add_dependence is working properly there should never
continue; be notes, deleted insns or duplicates in the backward
if (find_insn_list (insn, INSN_DEPEND (x))) links. Thus we need not check for them here.
continue;
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)); new_link = alloc_INSN_LIST (insn, INSN_DEPEND (x));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment