summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestat.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-30 08:07:07 +0200
committerMatthias Braun <matze@braunis.de>2015-07-01 07:40:03 +0200
commitc15ec9596306be5ea62c087d37024f0cac05d490 (patch)
tree7f1194ce671d1c4d68c405ab86ba2382080bac58 /ir/be/bestat.c
parent58b0168a2361d25b641eb0d5b8382ee75173b562 (diff)
bearch: rework should_be_same constraint
- Rename other_same field to should_be_same. - Remove arch_register_req_type_other_same, it's enough to see if the should_be_same field is not zero.
Diffstat (limited to 'ir/be/bestat.c')
-rw-r--r--ir/be/bestat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bestat.c b/ir/be/bestat.c
index 08688d4..579c9ea 100644
--- a/ir/be/bestat.c
+++ b/ir/be/bestat.c
@@ -230,7 +230,7 @@ static void block_count_values(ir_node *block, void *data)
if (req->cls == NULL)
continue;
++stats->values;
- if (arch_register_req_is(req, should_be_same) || is_Phi(value))
+ if (req->should_be_same != 0 || is_Phi(value))
++stats->should_be_sames;
if (req->limited != NULL)
++stats->constrained_values;