From 0dad8bfcc985ba41f200b5db21d8f1546ae901c2 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 12 Oct 2008 00:36:31 +0000 Subject: [PATCH] - removed unused (and outdated) be_collect_phis() - add some doxygen docu [r22778] --- ir/be/beutil.c | 17 ----------------- ir/be/beutil.h | 4 ++++ 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/ir/be/beutil.c b/ir/be/beutil.c index afec85b1c..1637c4d21 100644 --- a/ir/be/beutil.c +++ b/ir/be/beutil.c @@ -115,18 +115,6 @@ void be_dump(ir_graph *irg, const char *suffix, void (*dumper)(ir_graph *, const dumper(irg, buf); } - - -static void collect_phis(ir_node *irn, void *data) -{ - (void) data; - if(is_Phi(irn)) { - ir_node *bl = get_nodes_block(irn); - set_irn_link(irn, get_irn_link(bl)); - set_irn_link(bl, irn); - } -} - void be_clear_links(ir_graph *irg) { ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK); @@ -134,11 +122,6 @@ void be_clear_links(ir_graph *irg) ir_free_resources(irg, IR_RESOURCE_IRN_LINK); } -void be_collect_phis(ir_graph *irg) -{ - irg_walk_graph(irg, collect_phis, NULL, NULL); -} - static void count_num_reachable_nodes(ir_node *irn, void *env) { int *num = env; diff --git a/ir/be/beutil.h b/ir/be/beutil.h index b593cd91c..b5e393f55 100644 --- a/ir/be/beutil.h +++ b/ir/be/beutil.h @@ -110,6 +110,10 @@ static INLINE int is_data_node(const ir_node *irn) return 0; } +/** + * Clears the link fields of all nodes of the given graph. + * @param irg The graph. + */ void be_clear_links(ir_graph *irg); /** -- 2.20.1