X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbesched_t.h;h=0d37f86886730eba17d2c14942f51fd08bb09a2a;hb=84870987df5369387e8fcff0e4a31e6907bdac85;hp=d4ae3554d805aafc10baa7fa4adbdde71f76c118;hpb=4080eec4a207a1f6d231230677ecaacc16b87207;p=libfirm diff --git a/ir/be/besched_t.h b/ir/be/besched_t.h index d4ae3554d..0d37f8688 100644 --- a/ir/be/besched_t.h +++ b/ir/be/besched_t.h @@ -55,8 +55,6 @@ static INLINE int _sched_get_time_step(const ir_node *irn) */ static INLINE int to_appear_in_schedule(ir_node *irn) { - int i, n; - if(get_irn_opcode(irn) == iro_Start) return 1; @@ -207,11 +205,12 @@ static INLINE void _sched_remove(ir_node *irn) { sched_info_t *info = get_irn_sched_info(irn); list_del(&info->list); + INIT_LIST_HEAD(&info->list); info->scheduled = 0; } /** - * Check, if thenode is scheduled. + * Check, if the node is scheduled. * @param irn The node. * @return 1, if the node is scheduled, 0 if not. */