summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-28 12:53:59 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-10-31 16:34:42 +0100
commit7ba429b48e5262359395d493f5bd65fcdb3e3489 (patch)
tree70f77dbc2830ef30251c9c4fd0a927e0700d4910 /ir/common
parent63cfd483dfc6040a74ccf764086e346ad42efbdf (diff)
ir: Remove special case for oparity_dynamic from irn_copy_into_irg().
new_ir_node() handles oparity_dynamic correctly.
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/irtools.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/ir/common/irtools.c b/ir/common/irtools.c
index 85faf53..5b197ec 100644
--- a/ir/common/irtools.c
+++ b/ir/common/irtools.c
@@ -113,17 +113,9 @@ ir_node *irn_copy_into_irg(const ir_node *node, ir_graph *irg)
ir_node *block = op != op_Block ? get_nodes_block(node) : NULL;
dbg_info *dbgi = get_irn_dbg_info(node);
ir_mode *mode = get_irn_mode(node);
- ir_node *res;
- if (op->opar == oparity_dynamic) {
- res = new_ir_node(dbgi, irg, block, op, mode, -1, NULL);
- foreach_irn_in(node, i, in) {
- add_irn_n(res, in);
- }
- } else {
- ir_node **ins = get_irn_in(node)+1;
- int arity = get_irn_arity(node);
- res = new_ir_node(dbgi, irg, block, op, mode, arity, ins);
- }
+ ir_node **ins = get_irn_in(node) + 1;
+ int arity = get_irn_arity(node);
+ ir_node *res = new_ir_node(dbgi, irg, block, op, mode, arity, ins);
/* copy the attributes */
copy_node_attr(irg, node, res);