summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespillslots.c
diff options
context:
space:
mode:
authorMatthias Braun <matthias.braun@kit.edu>2012-07-30 18:30:51 +0200
committerMatthias Braun <matthias.braun@kit.edu>2012-07-30 18:30:51 +0200
commit0a7d7324b9baa076d1322e82b92f8fc2c8f1892e (patch)
tree55f52998d7e35eff3ac31c5c5526a6aca84d1891 /ir/be/bespillslots.c
parent5d18527fff162c842c152aff38b6d28e4eddef8e (diff)
simplify and cleanup execfreq API
Diffstat (limited to 'ir/be/bespillslots.c')
-rw-r--r--ir/be/bespillslots.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c
index b1b2638..2620ff5 100644
--- a/ir/be/bespillslots.c
+++ b/ir/be/bespillslots.c
@@ -152,7 +152,6 @@ static spill_t *collect_spill(be_fec_env_t *env, ir_node *node,
DB((dbg, DBG_COALESCING, "Slot %d: %+F\n", spill->spillslot, node));
if (is_Phi(node)) {
- const ir_exec_freq *exec_freq = be_get_irg_exec_freq(env->irg);
int arity = get_irn_arity(node);
int i;
for (i = 0; i < arity; ++i) {
@@ -163,7 +162,7 @@ static spill_t *collect_spill(be_fec_env_t *env, ir_node *node,
/* add an affinity edge */
affinty_edge = OALLOC(&env->obst, affinity_edge_t);
- affinty_edge->affinity = get_block_execfreq(exec_freq, block);
+ affinty_edge->affinity = get_block_execfreq(block);
affinty_edge->slot1 = spill->spillslot;
affinty_edge->slot2 = arg_spill->spillslot;
ARR_APP1(affinity_edge_t*, env->affinity_edges, affinty_edge);