From 7b0d3c99e37a90a463d515d8709beaa8c8704a3a Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 29 Dec 2008 19:36:47 +0000 Subject: [PATCH] Remove write-only bitset. [r24958] --- ir/be/beabi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 8c0b9b539..0b7625c73 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -1710,7 +1710,6 @@ static void modify_irg(be_abi_irg_t *env) lower_frame_sels_env_t ctx; ir_entity **param_map; - bitset_t *used_proj_nr; DEBUG_ONLY(firm_dbg_module_t *dbg = env->dbg;) DBG((dbg, LEVEL_1, "introducing abi on %+F\n", irg)); @@ -1741,9 +1740,8 @@ static void modify_irg(be_abi_irg_t *env) env->regs = pmap_create(); - used_proj_nr = bitset_alloca(1024); - n_params = get_method_n_params(method_type); - args = obstack_alloc(&env->obst, n_params * sizeof(args[0])); + n_params = get_method_n_params(method_type); + args = obstack_alloc(&env->obst, n_params * sizeof(args[0])); memset(args, 0, n_params * sizeof(args[0])); /* Check if a value parameter is transmitted as a register. @@ -1783,7 +1781,6 @@ static void modify_irg(be_abi_irg_t *env) /* For now, associate the register with the old Proj from Start representing that argument. */ pmap_insert(env->regs, (void *) arg->reg, args[i]); - bitset_set(used_proj_nr, i); DBG((dbg, LEVEL_2, "\targ #%d -> reg %s\n", i, arg->reg->name)); } } @@ -1826,7 +1823,6 @@ static void modify_irg(be_abi_irg_t *env) add_type |= arch_register_req_type_produces_sp | arch_register_req_type_ignore; assert(nr >= 0); - bitset_set(used_proj_nr, nr); proj = new_r_Proj(irg, reg_params_bl, env->reg_params, mode, nr); pmap_insert(env->regs, (void *) reg, proj); be_set_constr_single_reg_out(env->reg_params, nr, reg, add_type); -- 2.20.1