summaryrefslogtreecommitdiffhomepage
path: root/ir/be/besched.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-02-21 14:33:32 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-02-28 07:59:55 +0100
commit227cd4d45272ef1d7f89f43114d76f437bd6abd8 (patch)
treeddd31303aa95c8e973d0c705c92c6845b7346cac /ir/be/besched.h
parentfd7628f0518c7f8f319a78e1a5373d577f3692b0 (diff)
besched: Assert that the nodes in sched_comes_before() are in the same block.
Diffstat (limited to 'ir/be/besched.h')
-rw-r--r--ir/be/besched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/be/besched.h b/ir/be/besched.h
index e340992..d4a3142 100644
--- a/ir/be/besched.h
+++ b/ir/be/besched.h
@@ -146,6 +146,7 @@ void sched_replace(ir_node *old, ir_node *irn);
*/
static inline bool sched_comes_before(const ir_node *a, const ir_node *b)
{
+ assert(get_nodes_block(a) == get_nodes_block(b));
sched_timestep_t const as = sched_get_time_step(a);
sched_timestep_t const bs = sched_get_time_step(b);
return as < bs;