- C99 features removed
[libfirm] / ir / be / besched_t.h
index 2aa075c..8f6ddfc 100644 (file)
@@ -269,11 +269,7 @@ static INLINE void _sched_reset(const ir_node *node)
  */
 static INLINE void _sched_remove(const ir_node *irn)
 {
-       sched_info_t *info;
-#ifndef SCHEDULE_PROJ
-       assert(!is_Proj(irn));
-#endif
-       info = get_irn_sched_info(irn);
+       sched_info_t *info = get_irn_sched_info(irn);
        list_del(&info->list);
        INIT_LIST_HEAD(&info->list);
        info->scheduled = 0;
@@ -305,7 +301,7 @@ static INLINE int _sched_comes_after(const ir_node *n1, const ir_node *n2)
 {
        assert(_sched_is_scheduled(n1));
        assert(_sched_is_scheduled(n2));
-       assert(get_nodes_block(n1) == get_nodes_block(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);
 }