aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-11-23 11:02:54 +0100
committerJakub Jelinek <jakub@redhat.com>2021-11-23 11:03:44 +0100
commit2780484bc376a89edb0c97b6b85209f4c27f34ee (patch)
treee5c066342cebb43318c69819acdf24d2b9e383ba /gcc/tree-inline.c
parent6033b27eade9c31c0be50657094c89ef9068892d (diff)
downloadgcc-2780484bc376a89edb0c97b6b85209f4c27f34ee.zip
gcc-2780484bc376a89edb0c97b6b85209f4c27f34ee.tar.gz
gcc-2780484bc376a89edb0c97b6b85209f4c27f34ee.tar.bz2
inliner: Remove unused transform_lang_insert_block hook
This struct copy_body_data's hook is always NULL since merge of the tuples branch, before that it has been shortly used by the C++ FE during ctor/dtor cloning to chain the remapped blocks, but only very shortly, before transform_lang_insert_block was a bool and the call to insert_block was done through a langhook. I'd say that for something that hasn't been used since 4.4 there is zero chance we'll want to use it again in the near future. 2021-11-23 Jakub Jelinek <jakub@redhat.com> gcc/ * tree-inline.h (struct copy_body_data): Remove transform_lang_insert_block member. * tree-inline.c (remap_block): Don't call id->transform_lang_insert_block. (optimize_inline_calls, copy_gimple_seq_and_replace_locals, tree_function_versioning, maybe_inline_call_in_expr, copy_fn): Don't initialize id.transform_lang_insert_block. * gimplify.c (gimplify_omp_loop): Likewise. gcc/c/ * c-typeck.c (c_clone_omp_udr): Don't initialize id.transform_lang_insert_block. gcc/cp/ * semantics.c (clone_omp_udr): Don't initialize id.transform_lang_insert_block. * optimize.c (clone_body): Likewise.
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 8c108d8..bc5ff0b 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -823,9 +823,6 @@ remap_block (tree *block, copy_body_data *id)
&BLOCK_NONLOCALIZED_VARS (new_block),
id);
- if (id->transform_lang_insert_block)
- id->transform_lang_insert_block (new_block);
-
/* Remember the remapped block. */
insert_decl_map (id, old_block, new_block);
}
@@ -5473,7 +5470,6 @@ optimize_inline_calls (tree fn)
id.transform_new_cfg = false;
id.transform_return_to_modify = true;
id.transform_parameter = true;
- id.transform_lang_insert_block = NULL;
id.statements_to_fold = new hash_set<gimple *>;
push_gimplify_context ();
@@ -5857,7 +5853,6 @@ copy_gimple_seq_and_replace_locals (gimple_seq seq)
id.transform_new_cfg = false;
id.transform_return_to_modify = false;
id.transform_parameter = false;
- id.transform_lang_insert_block = NULL;
/* Walk the tree once to find local labels. */
memset (&wi, 0, sizeof (wi));
@@ -6252,7 +6247,6 @@ tree_function_versioning (tree old_decl, tree new_decl,
id.transform_new_cfg = true;
id.transform_return_to_modify = false;
id.transform_parameter = false;
- id.transform_lang_insert_block = NULL;
old_entry_block = ENTRY_BLOCK_PTR_FOR_FN
(DECL_STRUCT_FUNCTION (old_decl));
@@ -6541,7 +6535,6 @@ maybe_inline_call_in_expr (tree exp)
id.transform_new_cfg = false;
id.transform_return_to_modify = true;
id.transform_parameter = true;
- id.transform_lang_insert_block = NULL;
/* Make sure not to unshare trees behind the front-end's back
since front-end specific mechanisms may rely on sharing. */
@@ -6613,7 +6606,6 @@ copy_fn (tree fn, tree& parms, tree& result)
id.transform_new_cfg = false;
id.transform_return_to_modify = false;
id.transform_parameter = true;
- id.transform_lang_insert_block = NULL;
/* Make sure not to unshare trees behind the front-end's back
since front-end specific mechanisms may rely on sharing. */