Commit 4fe08551 authored by Matthias Braun's avatar Matthias Braun
Browse files

- oops, debug code was in cvs

parent ff4b9452
......@@ -276,24 +276,22 @@ static void mark_dead_nodes_walker(ir_node *node, void *data)
static void remove_dead_nodes_walker(ir_node *block, void *data)
{
remove_dead_nodes_env_t *env = (remove_dead_nodes_env_t*) data;
ir_node *node;
ir_node *node, *next;
for(node = sched_first(block); !sched_is_end(node); ) {
// get next node now, as after calling sched_remove it will be invalid
ir_node* next = sched_next(node);
for(node = sched_first(block); !sched_is_end(node); node = next) {
int i, arity;
if(bitset_is_set(env->reachable, get_irn_idx(node))) {
node = next;
// get next node now, as after calling sched_remove it will be invalid
next = sched_next(node);
if(bitset_is_set(env->reachable, get_irn_idx(node)))
continue;
}
sched_remove(node);
arity = get_irn_arity(node);
for(i = 0; i < arity; ++i)
set_irn_n(node, i, new_r_Bad(env->irg));
node = next;
sched_remove(node);
}
}
......
......@@ -585,8 +585,6 @@ next_value:
static void remove_copies(belady_env_t *bel) {
ir_node *irn;
edges_deactivate(current_ir_graph);
edges_activate(current_ir_graph);
foreach_pset(bel->copies, irn) {
ir_node *src;
const ir_edge_t *edge, *ne;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment