From 0a4a60a68c3997f5d85c717f38e2489b5eb0926a Mon Sep 17 00:00:00 2001 From: Aleksey Demakov Date: Fri, 27 Mar 2009 21:00:13 +0000 Subject: [PATCH] remove _jit_regs_get_cpu function --- ChangeLog | 5 +++++ jit/jit-reg-alloc.c | 39 --------------------------------------- jit/jit-reg-alloc.h | 1 - 3 files changed, 5 insertions(+), 40 deletions(-) diff --git a/ChangeLog b/ChangeLog index bdff4fd..e58df7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-03-28 Aleksey Demakov + + * jit/jit-reg-alloc.c, jit/jit-reg-alloc.c (_jit_regs_get_cpu): + remove unused function. + 2009-03-25 Michele Tartara * jit/jit-gen-arm.h (arm_alu_cc_reg): fix a typo. diff --git a/jit/jit-reg-alloc.c b/jit/jit-reg-alloc.c index 5435ba7..15eb4b7 100644 --- a/jit/jit-reg-alloc.c +++ b/jit/jit-reg-alloc.c @@ -2700,45 +2700,6 @@ int _jit_regs_needs_long_pair(jit_type_t type) #endif } -/*@ - * @deftypefun int _jit_regs_get_cpu (jit_gencode_t gen, int reg, int *other_reg) - * Get the CPU register that corresponds to a pseudo register. - * "other_reg" will be set to the other register in a pair, - * or -1 if the register is not part of a pair. - * @end deftypefun -@*/ -int _jit_regs_get_cpu(jit_gencode_t gen, int reg, int *other_reg) -{ - int cpu_reg, other; - -#ifdef JIT_REG_STACK - if(IS_STACK_REG(reg)) - { - reg = gen->reg_stack_top - reg; - cpu_reg = _jit_reg_info[reg].cpu_reg; - other = -1; - } - else -#endif - { - cpu_reg = _jit_reg_info[reg].cpu_reg; - if(gen->contents[reg].is_long_start) - { - other = _jit_reg_info[reg].other_reg; - other = _jit_reg_info[other].cpu_reg; - } - else - { - other = -1; - } - } - if(other_reg) - { - *other_reg = other; - } - return cpu_reg; -} - /*@ * @deftypefun void _jit_regs_alloc_global (jit_gencode_t gen, jit_function_t func) * Perform global register allocation on the values in @code{func}. diff --git a/jit/jit-reg-alloc.h b/jit/jit-reg-alloc.h index 75944b5..416e227 100644 --- a/jit/jit-reg-alloc.h +++ b/jit/jit-reg-alloc.h @@ -142,7 +142,6 @@ typedef struct int _jit_regs_lookup(char *name); int _jit_regs_needs_long_pair(jit_type_t type); -int _jit_regs_get_cpu(jit_gencode_t gen, int reg, int *other_reg); void _jit_regs_alloc_global(jit_gencode_t gen, jit_function_t func); void _jit_regs_init_for_block(jit_gencode_t gen); -- 2.47.3