summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beasm.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-30 17:48:01 +0200
committerMatthias Braun <matze@braunis.de>2015-07-01 07:40:03 +0200
commit474447c7491747fdaf5bc7f8a05ae561fcb31420 (patch)
treeb698d2cc1dddec3e0f5615e9eb58db1ce79f0c03 /ir/be/beasm.c
parentc15ec9596306be5ea62c087d37024f0cac05d490 (diff)
bearch: rework must_be_different constraint
- Rename other_different field to must_be_different - Remove arch_register_req_type_must_be_different, it's enough to see if the must_be_different field is not zero.
Diffstat (limited to 'ir/be/beasm.c')
-rw-r--r--ir/be/beasm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/beasm.c b/ir/be/beasm.c
index 9f4b3fa..7fd6004 100644
--- a/ir/be/beasm.c
+++ b/ir/be/beasm.c
@@ -215,10 +215,9 @@ ir_node *be_make_asm(ir_node const *const node, ir_node **in, arch_register_req_
if (different != 0) {
arch_register_req_t *const req = OALLOCZ(obst, arch_register_req_t);
- *req = *oreq;
- req->type |= arch_register_req_type_must_be_different;
- req->other_different = different;
- out_reqs[o] = req;
+ *req = *oreq;
+ req->must_be_different = different;
+ out_reqs[o] = req;
}
}