beirgmod: Do not set registers for the Perm results in insert_Perm_before() just...
[libfirm] / ir / be / beutil.c
index 8819242..6bafeaa 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief       Contains some useful function for the backend.
  * @author      Sebastian Hack
- * @version     $Id$
  */
 #include "config.h"
 
@@ -49,27 +48,12 @@ void be_clear_links(ir_graph *irg)
        irg_walk_graph(irg, firm_clear_link, NULL, NULL);
 }
 
-static void count_num_reachable_nodes(ir_node *irn, void *env)
-{
-       int *num = env;
-       (*num)++;
-       (void) irn;
-}
-
-unsigned get_num_reachable_nodes(ir_graph *irg)
-{
-       int num = 0;
-       irg_walk_graph(irg, count_num_reachable_nodes, NULL, &num);
-       return num;
-}
-
 /**
  * Gets the Proj with number pn from irn.
  */
 ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn)
 {
-       const ir_edge_t *edge;
-       ir_node         *proj;
+       ir_node *proj;
        assert(get_irn_mode(irn) == mode_T && "need mode_T");
 
        foreach_out_edge(irn, edge) {
@@ -82,6 +66,9 @@ ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn)
        return NULL;
 }
 
+/**
+ * Block-walker: adds the visited block to a flexible array.
+ */
 static void add_to_postorder(ir_node *block, void *data)
 {
        ir_node ***list = (ir_node***) data;