Commit d26de5d6 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Assert that nodes are scheduled in the same block as their predecessor/sucessor.

parent 961fd368
......@@ -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;
......
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