summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-10-06 10:40:38 +0200
committerMatthias Braun <matze@braunis.de>2010-10-06 10:40:38 +0200
commit4eccff9cdc2a5e114606e8b83745f1339c83c932 (patch)
tree2f69e9374a435577297938a7603f66be8eabb6c6 /ir/be/beloopana.c
parentb24c359be385d38d535efe35df5a937a8ee9cc0c (diff)
put register classes into arch_env struct, no need for complicated callbacks
[r28039]
Diffstat (limited to 'ir/be/beloopana.c')
-rw-r--r--ir/be/beloopana.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index 713ce40..afa4307 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -200,8 +200,8 @@ be_loopana_t *be_new_loop_pressure(ir_graph *irg,
if (cls != NULL) {
be_compute_loop_pressure(loop_ana, irg_loop, cls);
} else {
- for (i = arch_env_get_n_reg_class(arch_env) - 1; i >= 0; --i) {
- const arch_register_class_t *cls = arch_env_get_reg_class(arch_env, i);
+ for (i = arch_env->n_register_classes - 1; i >= 0; --i) {
+ const arch_register_class_t *cls = &arch_env->register_classes[i];
DBG((dbg, LEVEL_1, "\n=====================================================\n", cls->name));
DBG((dbg, LEVEL_1, " Computing register pressure for class %s:\n", cls->name));
DBG((dbg, LEVEL_1, "=====================================================\n", cls->name));