fixed prologue
[libfirm] / ir / be / ia32 / ia32_emitter.c
index f458bd0..70d59d3 100644 (file)
@@ -52,9 +52,8 @@ static const arch_env_t *arch_env = NULL;
 /**
  * returns true if a node has x87 registers
  */
-static int has_x87_register(const ir_node *n)
-{
-       return get_irn_op(n)->flags & (irop_flag_machine << 1);
+static int has_x87_register(const ir_node *n) {
+       return is_irn_machine_user(n, 0);
 }
 
 /* We always pass the ir_node which is a pointer. */
@@ -1477,7 +1476,7 @@ void ia32_gen_routine(FILE *F, ir_graph *irg, const ia32_code_gen_t *cg) {
        ia32_emit_func_prolog(F, irg);
        irg_block_walk_graph(irg, ia32_gen_labels, NULL, &emit_env);
 
-       if (cg->opt.extbb && cg->blk_sched) {
+       if ((cg->opt & IA32_OPT_EXTBB) && cg->blk_sched) {
                int i, n = ARR_LEN(cg->blk_sched);
 
                for (i = 0; i < n;) {