summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-01 07:38:29 +0200
committerMatthias Braun <matze@braunis.de>2015-07-01 07:40:03 +0200
commit9ba43dc66066e8a12739dbb083c832d8020665e7 (patch)
tree301bcffafd50e540b54094dd3a81e163dc22dafd /ir/be/becopyilp2.c
parent474447c7491747fdaf5bc7f8a05ae561fcb31420 (diff)
bearch: Use bool:1 instead of a bitset for remainin reg_req types
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index b557354..f1eb98b 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -56,8 +56,9 @@ static unsigned check_alignment_constraints(ir_node *node)
{
const arch_register_req_t *req = arch_get_irn_register_req(node);
// For larger than 1 variables, support only aligned constraints
- assert((arch_register_req_is(req, aligned) || req->width == 1) && "Unaligned large (width > 1) variables not supported");
- return arch_register_req_is(req, aligned) && req->width > 1;
+ assert((req->aligned || req->width == 1) &&
+ "Unaligned large (width > 1) variables not supported");
+ return req->aligned && req->width > 1;
}
static void make_color_var_name(char *buf, size_t buf_size,