From: Christoph Mallon Date: Sat, 27 Sep 2008 16:05:36 +0000 (+0000) Subject: Teach Mr. Gauß, Mr. Seidel and Mr. Grund to ignore the start loop. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e07c0dc0ce91e9d3d97963472b06569b8a73af86;p=libfirm Teach Mr. Gauß, Mr. Seidel and Mr. Grund to ignore the start loop. [r22318] --- diff --git a/ir/ana/execfreq.c b/ir/ana/execfreq.c index 37ce2d960..308a11d86 100644 --- a/ir/ana/execfreq.c +++ b/ir/ana/execfreq.c @@ -285,13 +285,13 @@ compute_execfreq(ir_graph * irg, double loop_weight) freq = set_insert_freq(freqs, bb); freq->idx = idx; - gs_matrix_set(mat, idx, idx, -1.0); for(i = get_Block_n_cfgpreds(bb) - 1; i >= 0; --i) { ir_node *pred = get_Block_cfgpred_block(bb, i); int pred_idx = size - dfs_get_post_num(dfs, pred) - 1; gs_matrix_set(mat, idx, pred_idx, get_cf_probability(bb, i, loop_weight)); } + gs_matrix_set(mat, idx, idx, -1.0); } dfs_free(dfs);