removed unitialized used vartiable
[libfirm] / ir / be / besched.c
index 93f9682..fa6e061 100644 (file)
@@ -29,6 +29,7 @@ FIRM_IMPL1(sched_has_next, int, const ir_node *)
 FIRM_IMPL1(sched_has_prev, int, const ir_node *)
 FIRM_IMPL1(sched_next, ir_node *, const ir_node *)
 FIRM_IMPL1(sched_prev, ir_node *, const ir_node *)
+FIRM_IMPL1(sched_is_scheduled, int, const ir_node *)
 FIRM_IMPL1(sched_first, ir_node *, const ir_node *)
 FIRM_IMPL1(sched_last, ir_node *, const ir_node *)
 FIRM_IMPL2(sched_add_after, ir_node *, ir_node *, ir_node *)
@@ -142,11 +143,6 @@ static void remove_dead_nodes_walker(ir_node *block, void *data)
                        continue;
 
                sched_remove(node);
-
-               /* when a node is exchanged, it is turned into Bad, do not set ins for those */
-               if (is_Bad(node))
-                       continue;
-
                be_kill_node(node);
        }
 }