-/**
- * Adds Projs to keep nodes for each register class, which eats the
- * caller saved registers.
- * Note: The caller has to make sure, that call is a Call
- *
- * @param call The Call node
- * @param walk_env The walker environment
- */
-static void lower_call_node(ir_node *call, const void *walk_env) {
- const arch_env_t *arch_env = walk_env;
- int bitset_idx = 0;
- int set_size = 0;
- arch_isa_t *isa = arch_env_get_isa(arch_env);
- const ir_node *proj_T = NULL;
- ir_node *block = get_nodes_block(call);
- const arch_register_class_t *reg_class;
- int i, j, pn, keep_arity;
- ir_node **in_keep;
- bitset_t *proj_set;
- const ir_edge_t *edge;
- const arch_register_t *reg;
-
- /* Prepare the bitset where we store the projnums which are already in use*/
- for (i = 0; i < arch_isa_get_n_reg_class(isa); i++) {
- reg_class = arch_isa_get_reg_class(isa, i);
- set_size += arch_register_class_n_regs(reg_class);
+static int get_n_out_edges(const ir_node *irn) {
+ const ir_edge_t *edge;
+ int cnt = 0;
+
+ foreach_out_edge(irn, edge) {
+ cnt++;