#include <stdlib.h>
-#include "besched_t.h"
+#include "besched.h"
#include "belistsched.h"
#include "belive_t.h"
#include "beutil.h"
#include "height.h"
#include "irtools.h"
#include "irgwalk.h"
-#include "benode_t.h"
+#include "benode.h"
#include "array_t.h"
// XXX there is no one time init for schedulers
int i;
ir_node* block = get_nodes_block(irn);
- fc = obstack_alloc(&inst->obst, sizeof(*fc) + sizeof(*fc->costs) * arity);
+ fc = OALLOCF(&inst->obst, flag_and_cost, costs, arity);
fc->no_root = 0;
costs = fc->costs;
The link field is used anyway. */
for (i = ARR_LEN(sched) - 1; i >= 0; --i) {
ir_node* irn = sched[i];
- if (!arch_irn_class_is(irn, branch)) {
+ if (!is_cfop(irn)) {
set_irn_link(irn, first);
first = irn;
}