Commit c8d34912 by Richard Biener Committed by Richard Biener

tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.

2019-09-03  Richard Biener  <rguenther@suse.de>

	* tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
	(vn_nary_op_insert): Likewise.
	* tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
	(vn_nary_op_lookup): Likewise.
	(vn_nary_op_insert): Likewise.

From-SVN: r275338
parent 70b766b2
2019-09-03 Richard Biener <rguenther@suse.de>
* tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
(vn_nary_op_insert): Likewise.
* tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
(vn_nary_op_lookup): Likewise.
(vn_nary_op_insert): Likewise.
2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com> 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
* config/s390/s390.c (s390_canonicalize_comparison): Use XEXP * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
......
...@@ -3325,20 +3325,6 @@ init_vn_nary_op_from_pieces (vn_nary_op_t vno, unsigned int length, ...@@ -3325,20 +3325,6 @@ init_vn_nary_op_from_pieces (vn_nary_op_t vno, unsigned int length,
memcpy (&vno->op[0], ops, sizeof (tree) * length); memcpy (&vno->op[0], ops, sizeof (tree) * length);
} }
/* Initialize VNO from OP. */
static void
init_vn_nary_op_from_op (vn_nary_op_t vno, tree op)
{
unsigned i;
vno->opcode = TREE_CODE (op);
vno->length = TREE_CODE_LENGTH (TREE_CODE (op));
vno->type = TREE_TYPE (op);
for (i = 0; i < vno->length; ++i)
vno->op[i] = TREE_OPERAND (op, i);
}
/* Return the number of operands for a vn_nary ops structure from STMT. */ /* Return the number of operands for a vn_nary ops structure from STMT. */
static unsigned int static unsigned int
...@@ -3440,22 +3426,6 @@ vn_nary_op_lookup_pieces (unsigned int length, enum tree_code code, ...@@ -3440,22 +3426,6 @@ vn_nary_op_lookup_pieces (unsigned int length, enum tree_code code,
return vn_nary_op_lookup_1 (vno1, vnresult); return vn_nary_op_lookup_1 (vno1, vnresult);
} }
/* Lookup OP in the current hash table, and return the resulting value
number if it exists in the hash table. Return NULL_TREE if it does
not exist in the hash table or if the result field of the operation
is NULL. VNRESULT will contain the vn_nary_op_t from the hashtable
if it exists. */
tree
vn_nary_op_lookup (tree op, vn_nary_op_t *vnresult)
{
vn_nary_op_t vno1
= XALLOCAVAR (struct vn_nary_op_s,
sizeof_vn_nary_op (TREE_CODE_LENGTH (TREE_CODE (op))));
init_vn_nary_op_from_op (vno1, op);
return vn_nary_op_lookup_1 (vno1, vnresult);
}
/* Lookup the rhs of STMT in the current hash table, and return the resulting /* Lookup the rhs of STMT in the current hash table, and return the resulting
value number if it exists in the hash table. Return NULL_TREE if value number if it exists in the hash table. Return NULL_TREE if
it does not exist in the hash table. VNRESULT will contain the it does not exist in the hash table. VNRESULT will contain the
...@@ -3708,21 +3678,6 @@ vn_nary_op_get_predicated_value (vn_nary_op_t vno, basic_block bb) ...@@ -3708,21 +3678,6 @@ vn_nary_op_get_predicated_value (vn_nary_op_t vno, basic_block bb)
return NULL_TREE; return NULL_TREE;
} }
/* Insert OP into the current hash table with a value number of
RESULT. Return the vn_nary_op_t structure we created and put in
the hashtable. */
vn_nary_op_t
vn_nary_op_insert (tree op, tree result)
{
unsigned length = TREE_CODE_LENGTH (TREE_CODE (op));
vn_nary_op_t vno1;
vno1 = alloc_vn_nary_op (length, result, VN_INFO (result)->value_id);
init_vn_nary_op_from_op (vno1, op);
return vn_nary_op_insert_into (vno1, valid_info->nary, true);
}
/* Insert the rhs of STMT into the current hash table with a value number of /* Insert the rhs of STMT into the current hash table with a value number of
RESULT. */ RESULT. */
......
...@@ -244,11 +244,9 @@ bool has_VN_INFO (tree); ...@@ -244,11 +244,9 @@ bool has_VN_INFO (tree);
extern vn_ssa_aux_t VN_INFO (tree); extern vn_ssa_aux_t VN_INFO (tree);
tree vn_get_expr_for (tree); tree vn_get_expr_for (tree);
void scc_vn_restore_ssa_info (void); void scc_vn_restore_ssa_info (void);
tree vn_nary_op_lookup (tree, vn_nary_op_t *);
tree vn_nary_op_lookup_stmt (gimple *, vn_nary_op_t *); tree vn_nary_op_lookup_stmt (gimple *, vn_nary_op_t *);
tree vn_nary_op_lookup_pieces (unsigned int, enum tree_code, tree vn_nary_op_lookup_pieces (unsigned int, enum tree_code,
tree, tree *, vn_nary_op_t *); tree, tree *, vn_nary_op_t *);
vn_nary_op_t vn_nary_op_insert (tree, tree);
vn_nary_op_t vn_nary_op_insert_pieces (unsigned int, enum tree_code, vn_nary_op_t vn_nary_op_insert_pieces (unsigned int, enum tree_code,
tree, tree *, tree, unsigned int); tree, tree *, tree, unsigned int);
bool ao_ref_init_from_vn_reference (ao_ref *, alias_set_type, tree, bool ao_ref_init_from_vn_reference (ao_ref *, alias_set_type, tree,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment