tree-flow.h (struct pre_expr_d): Remove forward declaration.

2012-03-29  Richard Guenther  <rguenther@suse.de>

	* tree-flow.h (struct pre_expr_d): Remove forward declaration.
	(add_to_value): Remove.
	(print_value_expressions): Likewise.
	* tree-ssa-pre.c (add_to_value): Make static.
	(print_value_expressions): Likewise.
	* gimple.h (gimple_adjust_this_by_delta): Remove.
	* gimple-fold.c (gimple_adjust_this_by_delta): Likewise.

From-SVN: r185956
This commit is contained in:
Richard Guenther 2012-03-29 12:47:51 +00:00 committed by Richard Biener
parent 6adb730866
commit 6bcfb75385
5 changed files with 12 additions and 29 deletions

View File

@ -1,3 +1,13 @@
2012-03-29 Richard Guenther <rguenther@suse.de>
* tree-flow.h (struct pre_expr_d): Remove forward declaration.
(add_to_value): Remove.
(print_value_expressions): Likewise.
* tree-ssa-pre.c (add_to_value): Make static.
(print_value_expressions): Likewise.
* gimple.h (gimple_adjust_this_by_delta): Remove.
* gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
2012-03-29 Richard Guenther <rguenther@suse.de>
PR middle-end/50708

View File

@ -978,29 +978,6 @@ gimple_fold_builtin (gimple stmt)
return result;
}
/* Generate code adjusting the first parameter of a call statement determined
by GSI by DELTA. */
void
gimple_adjust_this_by_delta (gimple_stmt_iterator *gsi, tree delta)
{
gimple call_stmt = gsi_stmt (*gsi);
tree parm, tmp;
gimple new_stmt;
delta = convert_to_ptrofftype (delta);
gcc_assert (gimple_call_num_args (call_stmt) >= 1);
parm = gimple_call_arg (call_stmt, 0);
gcc_assert (POINTER_TYPE_P (TREE_TYPE (parm)));
tmp = create_tmp_var (TREE_TYPE (parm), NULL);
add_referenced_var (tmp);
tmp = make_ssa_name (tmp, NULL);
new_stmt = gimple_build_assign_with_ops (POINTER_PLUS_EXPR, tmp, parm, delta);
SSA_NAME_DEF_STMT (tmp) = new_stmt;
gsi_insert_before (gsi, new_stmt, GSI_SAME_STMT);
gimple_call_set_arg (call_stmt, 0, tmp);
}
/* Return a binfo to be used for devirtualization of calls based on an object
represented by a declaration (i.e. a global or automatically allocated one)

View File

@ -960,7 +960,6 @@ unsigned get_gimple_rhs_num_ops (enum tree_code);
gimple gimple_alloc_stat (enum gimple_code, unsigned MEM_STAT_DECL);
const char *gimple_decl_printable_name (tree, int);
tree gimple_get_virt_method_for_binfo (HOST_WIDE_INT, tree);
void gimple_adjust_this_by_delta (gimple_stmt_iterator *, tree);
tree gimple_extract_devirt_binfo_from_cst (tree);
/* Returns true iff T is a valid GIMPLE statement. */
extern bool is_gimple_stmt (tree);

View File

@ -794,10 +794,7 @@ extern bool verify_eh_dispatch_edge (gimple);
extern void maybe_remove_unreachable_handlers (void);
/* In tree-ssa-pre.c */
struct pre_expr_d;
void add_to_value (unsigned int, struct pre_expr_d *);
void debug_value_expressions (unsigned int);
void print_value_expressions (FILE *, unsigned int);
/* In tree-ssa-sink.c */
bool is_hidden_global_store (gimple);

View File

@ -587,7 +587,7 @@ phi_trans_add (pre_expr e, pre_expr v, basic_block pred)
/* Add expression E to the expression set of value id V. */
void
static void
add_to_value (unsigned int v, pre_expr e)
{
bitmap_set_t set;
@ -1031,7 +1031,7 @@ debug_bitmap_set (bitmap_set_t set)
/* Print out the expressions that have VAL to OUTFILE. */
void
static void
print_value_expressions (FILE *outfile, unsigned int val)
{
bitmap_set_t set = VEC_index (bitmap_set_t, value_expressions, val);