Commit 4f36fe0c authored by Christian Würdig's avatar Christian Würdig
Browse files

do not schedule node having no users

parent 66c73eee
......@@ -173,7 +173,7 @@ static INLINE int make_ready(block_sched_env_t *env, ir_node *pred, ir_node *irn
int i, n;
/* Blocks cannot be scheduled. */
if (is_Block(irn))
if (is_Block(irn) || get_irn_n_edges(irn) == 0)
return 0;
/*
......@@ -465,6 +465,9 @@ static void list_sched_block(ir_node *block, void *env_ptr)
if (get_irn_opcode(irn) == iro_End)
continue;
if (get_irn_n_edges(irn) == 0)
continue;
if (is_Phi(irn)) {
/*
Phi functions are scheduled immediately, since they only
......
Markdown is supported
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