X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbearch.c;h=9b3303c626d4e384a72bd1fe3b74e287fe6c3f7b;hb=9450dc4c315f9ba19ec82b211d9166dde8e94e48;hp=013376cf8027995b1951dca663dc8b9bcc57d205;hpb=071b81998b17c006621e299c51aafd7ffc19f27a;p=libfirm diff --git a/ir/be/bearch.c b/ir/be/bearch.c index 013376cf8..9b3303c62 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -85,8 +85,7 @@ const arch_register_req_t *arch_get_register_req(const arch_env_t *env, return ops->impl->get_irn_reg_req(ops, req, irn, pos); } -int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, - int pos, const arch_register_class_t *cls, bitset_t *bs) +int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, int pos, bitset_t *bs) { arch_register_req_t local_req; const arch_irn_ops_t *ops = get_irn_ops(env, irn); @@ -98,7 +97,7 @@ int arch_get_allocatable_regs(const arch_env_t *env, const ir_node *irn, } if(arch_register_req_is(req, limited)) { - req->limited(irn, pos, bs); + req->limited(req->limited_env, bs); return bitset_popcnt(bs); } @@ -127,7 +126,7 @@ int arch_reg_is_allocatable(const arch_env_t *env, const ir_node *irn, if(arch_register_req_is(&req, limited)) { bitset_t *bs = bitset_alloca(req.cls->n_regs); - req.limited(irn, pos, bs); + req.limited(req.limited_env, bs); return bitset_is_set(bs, arch_register_get_index(reg)); }