fixed bug: Wrong opcode range was requested in be
[libfirm] / ir / be / beblocksched.c
index b936c60..a6b6af7 100644 (file)
 
 #include "iredges.h"
 #include "irgwalk.h"
+#include "irnode_t.h"
 #include "irgraph_t.h"
 #include "irloop.h"
 #include "irprintf.h"
+#include "execfreq.h"
 #include "irdump_t.h"
 #include "irtools.h"
 #include "debug.h"
@@ -135,7 +137,7 @@ static void collect_egde_frequency(ir_node *block, void *data)
        if (block == get_irg_start_block(env->irg))
                return;
 
-       arity = get_irn_arity(block);
+       arity = get_Block_n_cfgpreds(block);
 
        if (arity == 1) {
                edge.block            = block;