It does not make any sense to remove AM, which loads a non-GP value to fix register...
[libfirm] / ir / opt / ldst2.c
index 17029a2..eddc80a 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "iroptimize.h"
 
-#include "array.h"
+#include "array_t.h"
 #include "debug.h"
 #include "ircons.h"
 #include "irgraph.h"
@@ -525,7 +525,7 @@ static void Detotalise(ir_graph* irg)
        size_t npreds = get_Block_n_cfgpreds(end_block);
        size_t i;
 
-       unfinished_phis = xmalloc(sizeof(*unfinished_phis) * count_addrs);
+       unfinished_phis = XMALLOCN(ir_node, count_addrs);
        for (i = 0; i < count_addrs; i++) {
                unfinished_phis[i] = NULL;
        }
@@ -788,7 +788,7 @@ static void walker(ir_node *proj, void *env)
        }
 
        n = ir_nodeset_size(&pi.user_mem);
-       if (n != 0) { /* nothing happend otherwise */
+       if (n != 0) { /* nothing happened otherwise */
                ir_graph               *irg  = current_ir_graph;
                ir_node                *sync;
                ir_node               **in;