summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 22:55:53 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 22:55:53 +0200
commitcabe54a4c9fe9bcd6e66a221fde914c7e16e274f (patch)
tree63a4804b2e85c886f804e38f087ea774b35e27b1 /ir/be/bestat.c
parentd293b8b097aeae699c77b20367b1d0014571ba48 (diff)
Remove the unused attribute const arch_env_t *arch_env from struct estimate_irg_costs_env_t and also the then unused parameter const arch_env_t *arch_env from be_estimate_irg_costs().
[r22757]
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index a4f16aa..4e5a9c5 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -122,7 +122,6 @@ void be_do_stat_reg_pressure(be_irg_t *birg, const arch_register_class_t *cls) {
typedef struct _estimate_irg_costs_env_t {
- const arch_env_t *arch_env;
ir_exec_freq *execfreqs;
double costs;
} estimate_irg_costs_env_t;
@@ -140,11 +139,10 @@ static void estimate_block_costs(ir_node *block, void *data)
env->costs += costs * get_block_execfreq(env->execfreqs, block);
}
-double be_estimate_irg_costs(ir_graph *irg, const arch_env_t *arch_env, ir_exec_freq *execfreqs)
+double be_estimate_irg_costs(ir_graph *irg, ir_exec_freq *execfreqs)
{
estimate_irg_costs_env_t env;
- env.arch_env = arch_env;
env.execfreqs = execfreqs;
env.costs = 0.0;