diff options
author | Martin Jambor <mjambor@suse.cz> | 2009-11-10 15:43:20 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2009-11-10 15:43:20 +0100 |
commit | 2c5721d9f36a114809e296686ff39b1324b0cc5b (patch) | |
tree | 6cb5567aec53c0584fb5b316226815f21f6ec6b1 /gcc/lto-streamer-in.c | |
parent | c587836d9d5d1c1ec9182becd91268e0249d8f26 (diff) | |
download | gcc-2c5721d9f36a114809e296686ff39b1324b0cc5b.zip gcc-2c5721d9f36a114809e296686ff39b1324b0cc5b.tar.gz gcc-2c5721d9f36a114809e296686ff39b1324b0cc5b.tar.bz2 |
tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
2009-11-10 Martin Jambor <mjambor@suse.cz>
* tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
(execute_all_ipa_stmt_fixups): Declare.
* ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
* ipa-inline.c (pass_ipa_inline): Likewise.
* ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
* ipa-reference.c (pass_ipa_reference): Likewise.
* ipa.c (pass_ipa_whole_program_visibility): Likewise.
* lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
(pass_ipa_lto_finish_out): Likewise.
* lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
* passes.c (execute_ipa_stmt_fixups): New function.
(execute_all_ipa_stmt_fixups): New function.
* lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
From-SVN: r154064
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index f7c7936..7e1559c 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1261,6 +1261,7 @@ input_function (tree fn_decl, struct data_in *data_in, gimple *stmts; basic_block bb; struct bitpack_d *bp; + struct cgraph_node *node; fn = DECL_STRUCT_FUNCTION (fn_decl); tag = input_record_start (ib); @@ -1340,7 +1341,9 @@ input_function (tree fn_decl, struct data_in *data_in, gimple_set_body (fn_decl, bb_seq (ei_edge (ei)->dest)); } - fixup_call_stmt_edges (cgraph_node (fn_decl), stmts); + node = cgraph_node (fn_decl); + fixup_call_stmt_edges (node, stmts); + execute_all_ipa_stmt_fixups (node, stmts); update_ssa (TODO_update_ssa_only_virtuals); free_dominance_info (CDI_DOMINATORS); |