Use the proper magic word (get_Block_n_cfgpreds()) to get the number of cf predecesso...
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 17 May 2007 06:39:30 +0000 (06:39 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 17 May 2007 06:39:30 +0000 (06:39 +0000)
[r13910]

ir/be/beblocksched.c

index 74187b7..a6b6af7 100644 (file)
@@ -137,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;