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.
*/
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;