X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbesched.h;h=15e09965dbf12abc4bc76d83aeaae4edc1436b5b;hb=df2faee01a5832057bb3ca0ba5f67e979c916e19;hp=ffb06199bdf83fb2ca66c32388a2bf620f8b9d36;hpb=aa8f280aed5c7a1b7cac1c98ad8a0036c076b7ee;p=libfirm diff --git a/ir/be/besched.h b/ir/be/besched.h index ffb06199b..15e09965d 100644 --- a/ir/be/besched.h +++ b/ir/be/besched.h @@ -152,6 +152,11 @@ static inline void sched_reset(ir_node *node) */ void sched_remove(ir_node *irn); +/** + * Remove @p old from the schedule and put @p irn in its place. + */ +void sched_replace(ir_node *old, ir_node *irn); + /** * Checks, if one node is scheduled before another. * @param n1 A node. @@ -161,8 +166,6 @@ void sched_remove(ir_node *irn); */ static inline bool sched_comes_after(const ir_node *n1, const ir_node *n2) { - assert(sched_is_scheduled(n1)); - assert(sched_is_scheduled(n2)); assert((is_Block(n1) ? n1 : get_nodes_block(n1)) == (is_Block(n2) ? n2 : get_nodes_block(n2))); return sched_get_time_step(n1) < sched_get_time_step(n2); }