summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2007-06-08 17:20:51 +0200
committerMatthias Braun <matze@braunis.de>2007-06-08 17:20:51 +0200
commit501a13c6429ecb1de1cbb274782e67fa0030b970 (patch)
tree75e7b5d9d58d33c09940e92dbbd7d64be2c3874d /ir/be/beutil.c
parentf73a261d9158edcae0bd50ad14a9c0fe4def2791 (diff)
optimize next_use calculation (quadratic in number of outs not number of nodes in block
[r14380]
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index ee4506c..8b66eef 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -191,7 +191,9 @@ static void collect_phis(ir_node *irn, void *data)
void be_clear_links(ir_graph *irg)
{
+ set_using_irn_link(irg);
irg_walk_graph(irg, firm_clear_link, NULL, NULL);
+ clear_using_irn_link(irg);
}
void be_collect_phis(ir_graph *irg)