summaryrefslogtreecommitdiffhomepage
path: root/ir/be/besched.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-12 13:13:52 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-12 13:14:27 +0100
commitd26de5d6c3f7e1c5c27bdfb11c5b83af630776ba (patch)
treee8e121c2052f3fe80ed60064d81fafdabb5c1468 /ir/be/besched.c
parent961fd3683d2bb0ddee674a70133d2f1e3fce7c16 (diff)
be: Assert that nodes are scheduled in the same block as their predecessor/sucessor.
Diffstat (limited to 'ir/be/besched.c')
-rw-r--r--ir/be/besched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/besched.c b/ir/be/besched.c
index 7364361..4e3de67 100644
--- a/ir/be/besched.c
+++ b/ir/be/besched.c
@@ -84,6 +84,7 @@ void sched_add_before(ir_node *before, ir_node *irn)
assert(!sched_is_scheduled(irn));
assert(!is_Proj(before));
assert(!is_Proj(irn));
+ assert(get_block_const(before) == get_nodes_block(irn));
info->prev = prev;
info->next = next;
@@ -103,6 +104,7 @@ void sched_add_after(ir_node *after, ir_node *irn)
assert(!sched_is_scheduled(irn));
assert(!is_Proj(after));
assert(!is_Proj(irn));
+ assert(get_block_const(after) == get_nodes_block(irn));
info->prev = prev;
info->next = next;