Commit c2ebba1f authored by Christoph Mallon's avatar Christoph Mallon
Browse files

amd64: When turning an sub into neg+add copy the in requirements to the add.

Otherwise we end up with an add without in requirements.
parent d26de5d6
......@@ -111,6 +111,7 @@ static void transform_sub_to_neg_add(ir_node *node,
ir_node *in[] = { neg_res, in1 };
add = new_bd_amd64_add(dbgi, block, ARRAY_SIZE(in), in, attr);
arch_set_irn_register_reqs_in(add, arch_get_irn_register_reqs_in(node));
add_res = new_r_Proj(add, mode_Lu, pn_amd64_add_res);
}
arch_set_irn_register(add_res, out_reg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment