projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc17bc9
)
Teach Mr. Gauß, Mr. Seidel and Mr. Grund to ignore the start loop.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 27 Sep 2008 16:05:36 +0000
(16:05 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 27 Sep 2008 16:05:36 +0000
(16:05 +0000)
[r22318]
ir/ana/execfreq.c
patch
|
blob
|
history
diff --git
a/ir/ana/execfreq.c
b/ir/ana/execfreq.c
index
37ce2d9
..
308a11d
100644
(file)
--- 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);