debug handle must be static
[libfirm] / ir / ana / execfreq.c
index 57a1dec..e7a4a7a 100644 (file)
@@ -54,6 +54,7 @@
 #include "irgwalk.h"
 #include "iredges.h"
 #include "irprintf.h"
+#include "irtools.h"
 #include "irhooks.h"
 
 #include "execfreq.h"
@@ -87,6 +88,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 +227,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 +261,8 @@ compute_execfreq(ir_graph * irg, double loop_weight)
        freqs = ef->set = new_set(cmp_freq, 32);
 
        construct_cf_backedges(irg);
-       /* workaround for defect edges (happens after optimisations merges blocks)*/
+       /* 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); */