Changes API a little bit :-)
[libfirm] / ir / be / becopystat.c
index affb818..f202392 100644 (file)
@@ -122,7 +122,7 @@ static void irg_stat_walker(ir_node *node, void *env) {
        if (is_Block(node)) /* count all blocks */
                curr_vals[I_BLOCKS]++;
 
-       if (is_Phi(node) && is_firm_be_mode(get_irn_mode(node))) /* collect phis */
+       if (is_Reg_Phi(node)) /* collect phis */
                pset_insert_ptr(all_phi_nodes, node);
 
        if (is_Copy(arch_env, node))