int i, n;
/* Blocks cannot be scheduled. */
- if (is_Block(irn))
+ if (is_Block(irn) || get_irn_n_edges(irn) == 0)
return 0;
/*
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
}
/* Assure, that the out edges are computed */
- edges_assure(irg);
+ edges_deactivate(birg->irg);
+ edges_activate(birg->irg);
switch (list_sched_options.prep) {
case BE_SCHED_PREP_MRIS: