summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepbqpcoloring.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/bepbqpcoloring.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/bepbqpcoloring.c')
-rw-r--r--ir/be/bepbqpcoloring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/bepbqpcoloring.c b/ir/be/bepbqpcoloring.c
index a135f0a..050336d 100644
--- a/ir/be/bepbqpcoloring.c
+++ b/ir/be/bepbqpcoloring.c
@@ -253,8 +253,8 @@ static void create_affinity_edges(ir_node *irn, void *env)
return;
insert_afe_edge(pbqp_alloc_env, irn, arg, -1);
- } else if (arch_register_req_is(req, should_be_same)) {
- const unsigned other = req->other_same;
+ } else if (req->should_be_same != 0) {
+ const unsigned other = req->should_be_same;
int i;
for (i = 0; 1U << i <= other; ++i) {