- removed unused (and outdated) be_collect_phis()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 12 Oct 2008 00:36:31 +0000 (00:36 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 12 Oct 2008 00:36:31 +0000 (00:36 +0000)
- add some doxygen docu

[r22778]

ir/be/beutil.c
ir/be/beutil.h

index afec85b..1637c4d 100644 (file)
@@ -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;
index b593cd9..b5e393f 100644 (file)
@@ -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);
 
 /**