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);
*/
if (ir_profile_has_data())
birg->exec_freq = ir_create_execfreqs_from_profile(irg);
- else
+ else {
+ /* TODO: edges are corrupt for EDGE_KIND_BLOCK after the local
+ * optimize graph phase merges blocks in the x86 backend */
+ edges_deactivate(irg);
birg->exec_freq = compute_execfreq(irg, 10);
+ }
BE_TIMER_POP(t_execfreq);