start register allocator again, fix typo
[libfirm] / ir / be / beifg.c
index 72ff8ad..e42cc6c 100644 (file)
@@ -6,13 +6,12 @@
  * Copyright (C) 2005 Universitaet Karlsruhe
  * Released under the GPL
  */
-
-#include <stdlib.h>
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#include <stdlib.h>
+
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
@@ -46,6 +45,7 @@
 
 #include "becopystat.h"
 #include "becopyopt.h"
+#include "beirg_t.h"
 
 /** Defines values for the ifg performance test */
 #define BE_CH_PERFORMANCETEST_MIN_NODES (50)
@@ -270,8 +270,8 @@ static int be_ifg_check_cmp_nodes(const void *a, const void *b)
        const ir_node *node_a = *(ir_node **)a;
        const ir_node *node_b = *(ir_node **)b;
 
-       int nr_a = node_a->node_nr;
-       int nr_b = node_b->node_nr;
+       long nr_a = get_irn_node_nr(node_a);
+       long nr_b = get_irn_node_nr(node_b);
 
        return QSORT_CMP(nr_a, nr_b);
 }