summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beasm.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-19 08:34:12 +0200
committerMatthias Braun <matze@braunis.de>2015-06-19 08:34:12 +0200
commitbd0bfb9fe11843421b22ba66e62c35c9a383e62e (patch)
treec99615903984e2bde9f81c283eb01dc2a776b66a /ir/be/beasm.c
parentc85d04f813a7c612b7f9b4d0eb296c6b54441304 (diff)
remove arch_register_req_type_limited, look whether the limited pointer is != NULL instead
Diffstat (limited to 'ir/be/beasm.c')
-rw-r--r--ir/be/beasm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ir/be/beasm.c b/ir/be/beasm.c
index 634a1b5..e8d2cb8 100644
--- a/ir/be/beasm.c
+++ b/ir/be/beasm.c
@@ -51,7 +51,7 @@ arch_register_req_t const *be_make_register_req(struct obstack *obst, be_asm_con
*limited = c->allowed_registers;
memset(req, 0, sizeof(*req));
- req->type = arch_register_req_type_limited;
+ req->type = arch_register_req_type_none;
req->cls = c->cls;
req->limited = limited;
req->width = 1;
@@ -173,8 +173,7 @@ static bool can_match(arch_register_req_t const *const in, arch_register_req_t c
{
if (in->cls != out->cls)
return false;
- if (!arch_register_req_is(in, limited) ||
- !arch_register_req_is(out, limited))
+ if (in->limited == NULL || out->limited == NULL)
return true;
return (*in->limited & *out->limited) != 0;
}
@@ -248,7 +247,7 @@ ir_node *be_make_asm(ir_node const *const node, ir_node **in, arch_register_req_
continue;
/* add a new (dummy) input which occupies the register */
- assert(arch_register_req_is(outreq, limited));
+ assert(outreq->limited != NULL);
ARR_APP1(arch_register_req_t const*, in_reqs, outreq);
ARR_APP1(ir_node*, in, be_new_AnyVal(block, outreq->cls));
}
@@ -260,7 +259,7 @@ ir_node *be_make_asm(ir_node const *const node, ir_node **in, arch_register_req_
continue;
/* add a new (dummy) output which occupies the register */
- assert(arch_register_req_is(inreq, limited));
+ assert(inreq->limited != NULL);
ARR_APP1(arch_register_req_t const*, out_reqs, inreq);
}
}