summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beinfo.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-03-07 16:13:00 +0100
committerMatthias Braun <matze@braunis.de>2010-03-07 16:13:00 +0100
commit2807bb5b1ed34c23dc30d228ab0686c6fc9d6ae3 (patch)
tree6873f6bb41617a0f010d998deab763f725445bda /ir/be/beinfo.c
parent08ada3263ab17fb0743ac13f587986753ef287e2 (diff)
- cleanup and simplify inlining code
- remove a bunch of code which unexpectedly dependent on current_ir_graph being set to something - fix unnecessary double creation of backedge arrays in some cases [r27265]
Diffstat (limited to 'ir/be/beinfo.c')
-rw-r--r--ir/be/beinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ir/be/beinfo.c b/ir/be/beinfo.c
index 1783e9a..1cdfcdd 100644
--- a/ir/be/beinfo.c
+++ b/ir/be/beinfo.c
@@ -62,14 +62,15 @@ void be_info_new_node(ir_node *node)
}
}
-static void new_Phi_copy_attr(const ir_node *old_node, ir_node *new_node)
+static void new_Phi_copy_attr(ir_graph *irg, const ir_node *old_node,
+ ir_node *new_node)
{
backend_info_t *old_info = be_get_info(old_node);
backend_info_t *new_info = be_get_info(new_node);
*new_info = *old_info;
- old_phi_copy_attr(old_node, new_node);
+ old_phi_copy_attr(irg, old_node, new_node);
}
int be_infos_equal(const backend_info_t *info1, const backend_info_t *info2)