diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-07 14:20:58 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-07 14:20:58 +0000 |
commit | 026af9662fbf446fbee638724058506916298a22 (patch) | |
tree | 300825f8b7b7cc294a06cb371039c37d02636791 /gcc/tree-ssa-operands.c | |
parent | 812779b7ad2217d9984988fb44619b7f6beacccb (diff) | |
download | gcc-026af9662fbf446fbee638724058506916298a22.tar.gz |
* tree-ssa-operands.c (realloc_vop, realloc_vdef,
realloc_vuse): Remove.
* tree-ssa-operands.h: Remove the prototype for realloc_vdef
and realloc_vuse.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126442 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index edd2b902188..1e9dde7e327 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -669,99 +669,6 @@ add_vdef_op (tree stmt, tree op, int num, voptype_p last) } -/* Reallocate the virtual operand PTR so that it has NUM_ELEM use slots. ROOT - is the head of the operand list it belongs to. */ - -static inline struct voptype_d * -realloc_vop (struct voptype_d *ptr, unsigned int num_elem, - struct voptype_d **root) -{ - unsigned int x, lim; - tree stmt, val; - struct voptype_d *ret, *tmp; - - if (VUSE_VECT_NUM_ELEM (ptr->usev) == num_elem) - return ptr; - - val = VUSE_OP (ptr, 0); - if (TREE_CODE (val) == SSA_NAME) - val = SSA_NAME_VAR (val); - - stmt = USE_STMT (VUSE_OP_PTR (ptr, 0)); - - /* Delink all the existing uses. */ - for (x = 0; x < VUSE_VECT_NUM_ELEM (ptr->usev); x++) - { - use_operand_p use_p = VUSE_OP_PTR (ptr, x); - delink_imm_use (use_p); - } - - /* If we want less space, simply use this one, and shrink the size. */ - if (VUSE_VECT_NUM_ELEM (ptr->usev) > num_elem) - { - VUSE_VECT_NUM_ELEM (ptr->usev) = num_elem; - return ptr; - } - - /* It is growing. Allocate a new one and replace the old one. */ - ret = add_vuse_op (stmt, val, num_elem, ptr); - - /* Clear PTR and add its memory to the free list. */ - lim = VUSE_VECT_NUM_ELEM (ptr->usev); - memset (ptr, 0, - sizeof (struct voptype_d) + sizeof (vuse_element_t) * (lim- 1)); - add_vop_to_freelist (ptr); - - /* Now simply remove the old one. */ - if (*root == ptr) - { - *root = ret; - return ret; - } - else - for (tmp = *root; - tmp != NULL && tmp->next != ptr; - tmp = tmp->next) - { - tmp->next = ret; - return ret; - } - - /* The pointer passed in isn't in STMT's VDEF lists. */ - gcc_unreachable (); -} - - -/* Reallocate the PTR vdef so that it has NUM_ELEM use slots. */ - -struct voptype_d * -realloc_vdef (struct voptype_d *ptr, unsigned int num_elem) -{ - tree val, stmt; - struct voptype_d *ret; - - val = VDEF_RESULT (ptr); - stmt = USE_STMT (VDEF_OP_PTR (ptr, 0)); - ret = realloc_vop (ptr, num_elem, &(VDEF_OPS (stmt))); - VDEF_RESULT (ret) = val; - return ret; -} - - -/* Reallocate the PTR vuse so that it has NUM_ELEM use slots. */ - -struct voptype_d * -realloc_vuse (struct voptype_d *ptr, unsigned int num_elem) -{ - tree stmt; - struct voptype_d *ret; - - stmt = USE_STMT (VUSE_OP_PTR (ptr, 0)); - ret = realloc_vop (ptr, num_elem, &(VUSE_OPS (stmt))); - return ret; -} - - /* Takes elements from build_defs and turns them into def operands of STMT. TODO -- Make build_defs VEC of tree *. */ |