summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyopt_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2007-10-03 23:03:40 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2007-10-03 23:03:40 +0200
commit0f04127c7b44c3bc243dcea08454e49a29c2c498 (patch)
tree435ce6241a61f426060ad6e5223cf10973f0183e /ir/be/becopyopt_t.h
parentec67cca46184aecc1691b78daf5bdda3fbe9643f (diff)
In is_2addr_code() test whether the flag arch_register_req_type_should_be_same is set, not if the type is exactly arch_register_req_type_should_be_same. This glitch led to missing affinity edges/optimisation units for nodes which have other constraints, too.
[r16069]
Diffstat (limited to 'ir/be/becopyopt_t.h')
-rw-r--r--ir/be/becopyopt_t.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h
index 3a6a723..a448100 100644
--- a/ir/be/becopyopt_t.h
+++ b/ir/be/becopyopt_t.h
@@ -73,7 +73,7 @@ struct _copy_opt_t {
static INLINE int is_2addr_code(const arch_register_req_t *req)
{
- return req->type == arch_register_req_type_should_be_same;
+ return (req->type & arch_register_req_type_should_be_same) != 0;
}
/******************************************************************************