summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-26 19:26:04 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-12 10:54:48 +0100
commit34c76679d597fdfed1a523279359ede9b261693a (patch)
treecc14efa00a5daa5897928e16044435286f1aa53a /ir/be/betranshlp.c
parent1ae6d18b68ca36457db8cd42e3bf5e3d49d98f1c (diff)
ir: Remove dependency edges.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 3914a70..bc0ad9b 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -52,20 +52,6 @@ bool be_is_transformed(const ir_node *node)
return irn_visited(node);
}
-/**
- * Duplicate all dependency edges of a node.
- */
-static void be_duplicate_deps(ir_node *old_node, ir_node *new_node)
-{
- int deps = get_irn_n_deps(old_node);
- for (int i = 0; i < deps; ++i) {
- ir_node *dep = get_irn_dep(old_node, i);
- ir_node *new_dep = be_transform_node(dep);
-
- add_irn_dep(new_node, new_dep);
- }
-}
-
ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
{
ir_node *block = be_transform_node(get_nodes_block(node));
@@ -79,7 +65,6 @@ ir_node *be_transform_phi(ir_node *node, const arch_register_req_t *req)
ir_mode *mode = req->cls != NULL ? req->cls->mode : get_irn_mode(node);
ir_node *phi = new_ir_node(dbgi, irg, block, op_Phi, mode, arity, ins);
copy_node_attr(irg, node, phi);
- be_duplicate_deps(node, phi);
backend_info_t *info = be_get_info(phi);
struct obstack *obst = be_get_be_obst(irg);
@@ -137,7 +122,6 @@ static ir_node *transform_end(ir_node *node)
ir_node *block = be_transform_node(get_nodes_block(node));
ir_node *new_end = new_ir_node(dbgi, irg, block, op_End, mode_X, -1, NULL);
copy_node_attr(irg, node, new_end);
- be_duplicate_deps(node, new_end);
set_irg_end(irg, new_end);
@@ -184,8 +168,6 @@ ir_node *be_duplicate_node(ir_node *const node)
ir_node *const block = be_transform_node(get_nodes_block(node));
ir_node *const new_node = new_similar_node(node, block, ins);
- be_duplicate_deps(node, new_node);
-
new_node->node_nr = node->node_nr;
return new_node;
}
@@ -260,19 +242,6 @@ static void fix_loops(ir_node *node)
changed = true;
}
- for (int i = 0, arity = get_irn_n_deps(node); i < arity; ++i) {
- ir_node *in = get_irn_dep(node, i);
- ir_node *nw = (ir_node*)get_irn_link(in);
-
- if (nw != NULL && nw != in) {
- set_irn_dep(node, i, nw);
- in = nw;
- changed = true;
- }
-
- fix_loops(in);
- }
-
if (changed) {
identify_remember(node);
}