Commit 5fa1d671 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix backend nodes not copying flags correctly

parent a8d1d174
......@@ -144,6 +144,7 @@ static void TEMPLATE_copy_attr(ir_graph *irg, const ir_node *old_node,
memcpy(attr_new, attr_old, get_op_attr_size(get_irn_op(old_node)));
/* copy out flags */
new_info->flags = old_info->flags;
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;
......
......@@ -188,6 +188,7 @@ static void amd64_copy_attr(ir_graph *irg, const ir_node *old_node,
memcpy(attr_new, attr_old, get_op_attr_size(get_irn_op(old_node)));
/* copy out flags */
new_node->flags = old_info->flags;
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;
......
......@@ -595,6 +595,7 @@ static void arm_copy_attr(ir_graph *irg, const ir_node *old_node,
memcpy(attr_new, attr_old, get_op_attr_size(get_irn_op(old_node)));
/* copy out flags */
new_info->flags = old_info->flags;
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;
......
......@@ -1262,6 +1262,7 @@ static void copy_attr(ir_graph *irg, const ir_node *old_node, ir_node *new_node)
memcpy(new_attr, old_attr, get_op_attr_size(get_irn_op(old_node)));
new_info->flags = old_info->flags;
if (old_info->out_infos != NULL) {
unsigned n_outs = ARR_LEN(old_info->out_infos);
/* need dyanmic out infos? */
......
......@@ -1128,6 +1128,7 @@ static void ia32_copy_attr(ir_graph *irg, const ir_node *old_node,
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;
new_info->flags = old_info->flags;
}
/* Include the generated constructor functions */
......
......@@ -293,6 +293,7 @@ static void sparc_copy_attr(ir_graph *irg, const ir_node *old_node,
/* copy the attributes */
memcpy(attr_new, attr_old, get_op_attr_size(get_irn_op(old_node)));
/* copy out flags */
new_info->flags = old_info->flags;
new_info->out_infos =
DUP_ARR_D(reg_out_info_t, obst, old_info->out_infos);
new_info->in_reqs = old_info->in_reqs;
......
Supports Markdown
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