summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2020-05-08 14:35:09 +0200
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2021-03-22 12:04:24 +0100
commit7faa813a52b93d75d71f3d8379622bfd60c53743 (patch)
tree63468b5d8175424180d9c6c771dfbb60922e3158
parent3befc16c17ecb57e13df40961dca175ec7531063 (diff)
be2addr: fix copy-after case for modes with mode_T
-rw-r--r--ir/be/be2addr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/be2addr.c b/ir/be/be2addr.c
index 487b0b2..19243cb 100644
--- a/ir/be/be2addr.c
+++ b/ir/be/be2addr.c
@@ -81,10 +81,10 @@ static void be_handle_2addr_node(ir_node *const node, be_handle_2addr_callback_t
ir_node *const res = get_result_node(node, i);
if (res) {
ir_node *const block = get_nodes_block(node);
- ir_node *const copy = be_new_Copy(block, node);
+ ir_node *const copy = be_new_Copy(block, res);
arch_set_irn_register_out(copy, 0, out_reg);
sched_add_after(node, copy);
- edges_reroute_except(node, copy, copy);
+ edges_reroute_except(res, copy, copy);
DBG((dbg, LEVEL_1, "created %+F for should_be_same constraint at output %u of %+F\n", copy, i, node));
}
} else {