fix mips immediate dumper
[libfirm] / ir / ana / execfreq.c
index 957dc89..6edc7af 100644 (file)
@@ -87,6 +87,7 @@ cmp_freq(const void *a, const void *b, size_t size)
 {
        const freq_t *p = a;
        const freq_t *q = b;
+       (void) size;
 
        return !(p->irn == q->irn);
 }
@@ -225,6 +226,7 @@ ir_exec_freq *create_execfreq(ir_graph *irg)
        execfreq->hook.context = execfreq;
        execfreq->hook.hook._hook_node_info = exec_freq_node_info;
        register_hook(hook_node_info, &execfreq->hook);
+       (void) irg;
 
        return execfreq;
 }
@@ -258,7 +260,11 @@ compute_execfreq(ir_graph * irg, double loop_weight)
        freqs = ef->set = new_set(cmp_freq, 32);
 
        construct_cf_backedges(irg);
-       edges_assure(irg);
+       /* TODO: edges are corrupt for EDGE_KIND_BLOCK after the local optimize
+                graph phase merges blocks in the x86 backend */
+       edges_deactivate(irg);
+       edges_activate(irg);
+       /* edges_assure(irg); */
 
        wd.idx = 0;
        wd.set = freqs;