summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-11-12 05:22:47 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-11-13 17:32:00 +0100
commit86163b5664564f88675d24f11236649b88f89be6 (patch)
treef3424952e443060c356fe3a3217e64196325c869 /ir/be/becopyilp2.c
parent4cd9a0a92cd161a93ce51127ff680ef83fb69a67 (diff)
be: Remove the thin wrapper macro arch_register_class_n_regs().
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index 50e0fbd..0f7f038 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -70,7 +70,7 @@ static void build_coloring_cstr(ilp_env_t *ienv)
{
local_env_t *lenv = (local_env_t*)ienv->env;
be_ifg_t *ifg = ienv->co->cenv->ifg;
- unsigned n_regs = arch_register_class_n_regs(ienv->co->cls);
+ unsigned n_regs = ienv->co->cls->n_regs;
const unsigned *allocatable_colors = lenv->allocatable_colors;
char buf[32];
@@ -144,7 +144,7 @@ static void build_interference_cstr(ilp_env_t *ienv)
lpp_t *lpp = ienv->lp;
local_env_t *lenv = (local_env_t*)ienv->env;
be_ifg_t *ifg = ienv->co->cenv->ifg;
- unsigned n_colors = arch_register_class_n_regs(ienv->co->cls);
+ unsigned n_colors = ienv->co->cls->n_regs;
ir_node **clique = ALLOCAN(ir_node*, n_colors);
const unsigned *allocatable_colors = lenv->allocatable_colors;
cliques_iter_t iter;
@@ -219,7 +219,7 @@ static void make_affinity_var_name(char *buf, size_t buf_size,
*/
static void build_affinity_cstr(ilp_env_t *ienv)
{
- unsigned n_colors = arch_register_class_n_regs(ienv->co->cls);
+ unsigned const n_colors = ienv->co->cls->n_regs;
/* for all optimization units */
list_for_each_entry(unit_t, curr, &ienv->co->units, units) {