summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespill.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-27 08:25:54 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-27 11:16:15 +0100
commitc3ce39736db79adc61bb83df2b0afcc9f0c807df (patch)
tree3941fc06e3a78e6ef8b2af8658a45e1a70c22488 /ir/be/bespill.c
parent256f62cc95bff324e0bd4108ae1af8a748871f39 (diff)
bearch: Use arch_register_req_is().
Diffstat (limited to 'ir/be/bespill.c')
-rw-r--r--ir/be/bespill.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ir/be/bespill.c b/ir/be/bespill.c
index ff361f6..95201b6 100644
--- a/ir/be/bespill.c
+++ b/ir/be/bespill.c
@@ -88,7 +88,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
rbitset_is_set(birg->allocatable_regs, reg->global_index))
continue;
- if (! (req->type & arch_register_req_type_limited))
+ if (!arch_register_req_is(req, limited))
continue;
if (rbitset_is_set(req->limited, reg->index))
continue;
@@ -111,7 +111,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
if (req->cls != cls)
continue;
- if (! (req->type & arch_register_req_type_limited))
+ if (!arch_register_req_is(req, limited))
continue;
in = get_irn_n(node, i);
@@ -125,7 +125,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
req2 = arch_get_irn_register_req_in(node, i2);
if (req2->cls != cls)
continue;
- if (! (req2->type & arch_register_req_type_limited))
+ if (!arch_register_req_is(req2, limited))
continue;
in2 = get_irn_n(node, i2);
@@ -151,7 +151,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
/* collect all registers occurring in out constraints. */
be_foreach_definition(node, cls, def,
(void)def;
- if (! (req_->type & arch_register_req_type_limited))
+ if (!arch_register_req_is(req_, limited))
continue;
if (def_constr == NULL) {
def_constr = rbitset_alloca(cls->n_regs);
@@ -183,7 +183,7 @@ static void prepare_constr_insn(be_pre_spill_env_t *env, ir_node *node)
req = arch_get_irn_register_req_in(node, i);
if (req->cls != cls)
continue;
- if (!(req->type & arch_register_req_type_limited))
+ if (!arch_register_req_is(req, limited))
continue;
in = get_irn_n(node, i);