diff options
author | Richard Guenther <rguenther@suse.de> | 2012-03-29 12:47:51 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-03-29 12:47:51 +0000 |
commit | 6bcfb753855b957ad7cc8cf04fd767a1b013979d (patch) | |
tree | 284a880ca378ae26a5aaff22e72db72e62f99120 /gcc/gimple-fold.c | |
parent | 6adb7308669b8f8927093ec4145ed47e9a832bb0 (diff) | |
download | gcc-6bcfb753855b957ad7cc8cf04fd767a1b013979d.zip gcc-6bcfb753855b957ad7cc8cf04fd767a1b013979d.tar.gz gcc-6bcfb753855b957ad7cc8cf04fd767a1b013979d.tar.bz2 |
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
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index a1eba65..6ad81dd 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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) |