summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-08 22:11:13 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-08 22:11:13 +0100
commit9f4c8ce4103b25dc949f46a9020264bbcfd5f97f (patch)
treee40e374c5a18e803bb14873dd2d8d5b08c8a1ad8
parentc460d046d0ea8008a1abbbf8f7d2ccf8498876ae (diff)
Revert "amd64: emitter: assert that register should_be_same constraints are not violated"
be_handle_2addr() has a generic checker. This reverts commit 12972986a79e5ab3df5e2d2ed8377c7db5d83754.
-rw-r--r--ir/be/amd64/amd64_emitter.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ir/be/amd64/amd64_emitter.c b/ir/be/amd64/amd64_emitter.c
index 203a50b..a786361 100644
--- a/ir/be/amd64/amd64_emitter.c
+++ b/ir/be/amd64/amd64_emitter.c
@@ -287,15 +287,6 @@ emit_addr_reg:
assert(attr->addr.variant == X86_ADDR_REG);
arch_register_t const *const reg
= arch_get_irn_register_in(node, attr->addr.base_input);
- // check that should_be_same constraints are fulfilled
- be_foreach_out(node, i) {
- arch_register_req_t const *const req = arch_get_irn_register_req_out(node, i);
- if (req->should_be_same == 0)
- continue;
- unsigned const same_as = ntz(req->should_be_same);
- const arch_register_t *outreg = arch_get_irn_register_out(node, same_as);
- assert(outreg == NULL || (reg->index == outreg->index && "invalid 2addr code: in register != out register"));
- }
emit_register_mode(reg, attr->base.size);
return;
}