X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fexecfreq.c;h=e7a4a7a69fc860c43f9f9da298ca185f48cb5b4e;hb=31af28c44f976bd8604669d4118ff3e12f175579;hp=57a1dec9faf472712804aedfada528a6721214f0;hpb=95afc5aaefb484a67fb89f02b5e96cc302fe02ef;p=libfirm diff --git a/ir/ana/execfreq.c b/ir/ana/execfreq.c index 57a1dec9f..e7a4a7a69 100644 --- a/ir/ana/execfreq.c +++ b/ir/ana/execfreq.c @@ -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); */