summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.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/bestat.c
parentc85d04f813a7c612b7f9b4d0eb296c6b54441304 (diff)
remove arch_register_req_type_limited, look whether the limited pointer is != NULL instead
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index 6dd78f2..08688d4 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -232,7 +232,7 @@ static void block_count_values(ir_node *block, void *data)
++stats->values;
if (arch_register_req_is(req, should_be_same) || is_Phi(value))
++stats->should_be_sames;
- if (arch_register_req_is(req, limited))
+ if (req->limited != NULL)
++stats->constrained_values;
);
for (int i = 0, arity = get_irn_arity(node); i < arity; ++i) {
@@ -246,11 +246,11 @@ static void block_count_values(ir_node *block, void *data)
++stats->unused_values;
const arch_register_req_t *const req
= arch_get_irn_register_req(value);
- if (arch_register_req_is(req, limited))
+ if (req->limited != NULL)
++stats->unused_constrained_values;
}
}
- if (arch_register_req_is(req, limited))
+ if (req->limited != NULL)
++stats->constrained_uses;
}
}