summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beprefalloc.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-16 13:35:53 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-18 11:21:07 +0100
commit634830b6d4b9e339a33a0fd65cab0d828755848a (patch)
tree413272de97d43eee01905128a85173f157387433 /ir/be/beprefalloc.c
parent1289d1b6a61462bcdf9ac3d64ac484e0d728e474 (diff)
be: Move the info about the register classes and registers struct the arch_env_t into struct arch_isa_if_t.
Diffstat (limited to 'ir/be/beprefalloc.c')
-rw-r--r--ir/be/beprefalloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/beprefalloc.c b/ir/be/beprefalloc.c
index a6d9b66..16731b5 100644
--- a/ir/be/beprefalloc.c
+++ b/ir/be/beprefalloc.c
@@ -1819,10 +1819,9 @@ static void be_pref_alloc(ir_graph *new_irg)
/* determine a good coloring order */
determine_block_order();
- const arch_env_t *arch_env = be_get_irg_arch_env(new_irg);
- int n_cls = arch_env->n_register_classes;
- for (int c = 0; c < n_cls; ++c) {
- cls = &arch_env->register_classes[c];
+ arch_register_class_t const *const reg_classes = isa_if->register_classes;
+ for (int c = 0, n_cls = isa_if->n_register_classes; c < n_cls; ++c) {
+ cls = &reg_classes[c];
if (cls->flags & arch_register_class_flag_manual_ra)
continue;