Do not forcefully rebuild outedges in compute_execfreq(), but handle this at the...
[libfirm] / ir / ana / execfreq.c
index fbf0033..37ce2d9 100644 (file)
@@ -271,11 +271,7 @@ compute_execfreq(ir_graph * irg, double loop_weight)
        irg_block_walk_graph(irg, collect_blocks, NULL, freqs);
 
        construct_cf_backedges(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); */
+       edges_assure(irg);
 
        size = dfs_get_n_nodes(dfs);
        mat  = gs_new_matrix(size, size);