summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 20:11:43 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2008-10-11 20:11:43 +0200
commit7c767284b8f554996788212eb30709bb949710c4 (patch)
tree38800b7f0d1257c0b974482144418e80336cc39f /ir/be/bestat.c
parent0dad4e224fe6d1b4cdc1f2e12cda4a004fbd9023 (diff)
Remove the unused parameter const arch_env_t *env from arch_irn_classify() and arch_irn_class_is().
[r22702]
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index df3a5c6..03a16a6 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -158,8 +158,7 @@ double be_estimate_irg_costs(ir_graph *irg, const arch_env_t *arch_env, ir_exec_
-static const arch_env_t *arch_env;
-static be_node_stats_t *stats;
+static be_node_stats_t *stats;
static void node_stat_walker(ir_node *irn, void *data)
{
@@ -173,7 +172,7 @@ static void node_stat_walker(ir_node *irn, void *data)
(*stats)[BE_STAT_PHIS]++;
}
} else {
- arch_irn_class_t classify = arch_irn_classify(arch_env, irn);
+ arch_irn_class_t classify = arch_irn_classify(irn);
if(classify & arch_irn_class_spill)
(*stats)[BE_STAT_SPILLS]++;
@@ -190,8 +189,7 @@ static void node_stat_walker(ir_node *irn, void *data)
void be_collect_node_stats(be_node_stats_t *new_stats, be_irg_t *birg)
{
- arch_env = birg->main_env->arch_env;
- stats = new_stats;
+ stats = new_stats;
memset(stats, 0, sizeof(*stats));
irg_walk_graph(birg->irg, NULL, node_stat_walker, NULL);