diff options
author | Jan Hubicka <jh@suse.cz> | 2008-08-21 17:26:59 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-08-21 15:26:59 +0000 |
commit | 129a37fc319db84e962397736a3030cb95471df2 (patch) | |
tree | ea7b07c12837d74f7ef838851f5acf7f97cc0948 /gcc/ipa-inline.c | |
parent | 1e52075c544a9808b4b370ef974c198f3bb639b5 (diff) | |
download | gcc-129a37fc319db84e962397736a3030cb95471df2.zip gcc-129a37fc319db84e962397736a3030cb95471df2.tar.gz gcc-129a37fc319db84e962397736a3030cb95471df2.tar.bz2 |
cgraph.c (first_cgraph_function_insertion_hook): New variable.
* cgraph.c (first_cgraph_function_insertion_hook): New variable.
(cgraph_add_function_insertion_hook, cgraph_remove_function_insertion_hook,
cgraph_call_function_insertion_hooks): New functions.
* cgraph.h (cgraph_add_function_insertion_hook, cgraph_remove_function_insertion_hook,
cgraph_call_function_insertion_hooks): Declare.
* ipa-reference.c (function_insertion_hook_holder): New variable.
(check_operand, look_for_address_of): When checking late, do not care
about module bitmaps.
(add_new_function): New function.
(generate_summary): Register hooks; zero module bitmaps.
(propagate): Unregister hooks.
* ipa-pure-const.c (function_insertion_hook_holder): New variable.
(add_new_function): New function.
(generate_summary): Register hook.
(propagate): Remove hook.
* ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
* tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
* ipa-cp.c (ipcp_update_cloned_node): New function.
(build_const_val): Handle functions correctly; bring type logic
into sync with tree-inline.c
(ipcp_init_stage): Take care of computing stuff needed by
indirect inlining; update clones.
(ipcp_generate_summary): Break out of ipcp_driver.
(ipcp_driver): Do only execution and transformation.
(pass_ipa_cp): Make IPA_PASS.
* tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
offset to address.
* ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
ipcp, some info is already available.
* ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
* tree-inline.c (remap_ssa_name): Unshare expression.
From-SVN: r139389
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index ec3a271..d5f280f 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1633,19 +1633,23 @@ inline_indirect_intraprocedural_analysis (struct cgraph_node *node) { struct cgraph_edge *cs; - ipa_count_formal_params (node); - ipa_create_param_decls_array (node); - ipa_detect_param_modifications (node); + if (!flag_ipa_cp) + { + ipa_count_formal_params (node); + ipa_create_param_decls_array (node); + ipa_detect_param_modifications (node); + } ipa_analyze_params_uses (node); if (dump_file) ipa_print_node_param_flags (dump_file, node); - for (cs = node->callees; cs; cs = cs->next_callee) - { - ipa_count_arguments (cs); - ipa_compute_jump_functions (cs); - } + if (!flag_ipa_cp) + for (cs = node->callees; cs; cs = cs->next_callee) + { + ipa_count_arguments (cs); + ipa_compute_jump_functions (cs); + } if (dump_file) ipa_print_node_jump_functions (dump_file, node); |