Do not mark the transformed as visited. It makes no sense at all.
[libfirm] / ir / be / becopyheur3.c
index eb0e0f4..7d490e1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -30,8 +30,8 @@
 
 #ifdef WITH_JVM
 
-#include <libcore/lc_opts.h>
-#include <libcore/lc_opts_enum.h>
+#include "lc_opts.h"
+#include "lc_opts_enum.h"
 
 #include <stdlib.h>
 #include <limits.h>
@@ -150,8 +150,8 @@ int co_solve_heuristic_java(copy_opt_t *co)
                }
        }
 
-       node_map     = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(node_map[0]));
-       inv_node_map = xmalloc((get_irg_last_idx(co->irg) + 1) * sizeof(inv_node_map[0]));
+       node_map     = XMALLOC(int, get_irg_last_idx(co->irg) + 1);
+       inv_node_map = XMALLOC(int, get_irg_last_idx(co->irg) + 1);
 
        curr_idx = 0;
        be_ifg_foreach_node(ifg, nodes_it, n) {