diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-16 13:26:40 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-16 13:26:40 +0000 |
commit | 6d1cc52ccc8ccbb8d83ceb218c2e24ee9bbd2c4b (patch) | |
tree | ece4c3265c5f578e93ab9450ccf60b597e2a02e3 /gcc/lto-streamer-in.c | |
parent | 3b901c355f6dcf946ed6e12c057e3ca3a65547e5 (diff) | |
download | gcc-6d1cc52ccc8ccbb8d83ceb218c2e24ee9bbd2c4b.tar.gz |
* cgraph.c (cgraph_release_function_body): Update use of
ipa_transforms_to_apply.
(cgraph_remove_node): Remove ipa_transforms_to_apply.
* cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
* cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
copied body.
(cgraph_materialize_clone): Remove original if dead.
* lto-streamer-in.c (lto_read_body): Remove FIXME and
ipa_transforms_to_apply hack.
* function.h (struct function): Add ipa_transforms_to_apply.
* ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
* tree-inline.c (copy_bb): Update sanity check.
(initialize_cfun): Do not copy ipa_transforms_to_apply.
(expand_call_inline): remove dead clone originals.
(tree_function_versioning): Merge transformation queues.
* passes.c (add_ipa_transform_pass): Remove.
(execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
tracking.
(execute_all_ipa_transforms): Update.
(execute_one_pass): Update.
* lto.c (read_cgraph_and_symbols): Set also ipa_transforms_to_apply.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 59784a42f63..dcc92fde13d 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1476,15 +1476,6 @@ lto_read_body (struct lto_file_decl_data *file_data, tree fn_decl, /* Restore decl state */ file_data->current_decl_state = file_data->global_decl_state; - /* FIXME: ipa_transforms_to_apply holds list of passes that have optimization - summaries computed and needs to apply changes. At the moment WHOPR only - supports inlining, so we can push it here by hand. In future we need to stream - this field into ltrans compilation. This will also need to move the field - from struct function into cgraph node where it belongs. */ - if (flag_ltrans && !cgraph_node (fn_decl)->global.inlined_to) - VEC_safe_push (ipa_opt_pass, heap, - cfun->ipa_transforms_to_apply, - (ipa_opt_pass)&pass_ipa_inline); pop_cfun (); } else |