fixed bug: Wrong opcode range was requested in be
[libfirm] / ir / be / beblocksched.c
index 063befc..a6b6af7 100644 (file)
  * PURPOSE.
  */
 
-/*
- * Author:      Matthias Braun, Christoph Mallon
- * Date:               27.09.2006
- * Copyright:   (c) Universitaet Karlsruhe
- * License:     This file is protected by GPL -  GNU GENERAL PUBLIC LICENSE.
- * CVS-Id:      $Id$
+/**
+ * @file
+ * @brief       Block-scheduling strategies.
+ * @author      Matthias Braun, Christoph Mallon
+ * @date        27.09.2006
+ * @version     $Id$
  */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 
 #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;