diff options
author | Jan Hubicka <jh@suse.cz> | 2008-08-23 22:28:07 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-08-23 20:28:07 +0000 |
commit | 00fc23337d06089d5662383e2f6bdea105055894 (patch) | |
tree | b2d83395a226ce339483346c7db1d16095008402 /gcc/ipa-prop.h | |
parent | 98e146ab5ceb193cc662f9f6c313a87988131f35 (diff) | |
download | gcc-00fc23337d06089d5662383e2f6bdea105055894.zip gcc-00fc23337d06089d5662383e2f6bdea105055894.tar.gz gcc-00fc23337d06089d5662383e2f6bdea105055894.tar.bz2 |
tree.c (decl_address_ip_invariant_p): New function.
* tree.c (decl_address_ip_invariant_p): New function.
* tree.h (decl_address_ip_invariant_p): Declare.
* gimple.c (strip_invariant_refs): Break out from ...
(is_gimple_invariant_address): ... here
(is_gimple_ip_invariant_address): New function.
(is_gimple_ip_invariant): New function.
* gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
Declare.
* ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
(ipcp_lat_is_insertable): All constants are insertable.
(ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
IPA_CONST_VALUE_REF.
(ipcp_initialize_node_lattices): Propagate all types of operands.
(build_const_val): Do not handle IPA_CONST_VALUE_REF.
(ipcp_create_replace_map): Reformat.
(ipcp_need_redirect_p): Simplify.
(ipcp_insert_stage): Check that argument is used before clonning.
* ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
(compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
(determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
(update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
* ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
(jump_func_type): Remove IPA_CONST_VALUE_REF.
* tree-inline.c (tree_function_versioning): Add variables referenced by
replacing trees.
From-SVN: r139523
Diffstat (limited to 'gcc/ipa-prop.h')
-rw-r--r-- | gcc/ipa-prop.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h index 908a97e..967825e 100644 --- a/gcc/ipa-prop.h +++ b/gcc/ipa-prop.h @@ -32,14 +32,12 @@ along with GCC; see the file COPYING3. If not see Formal - the caller's formal parameter is passed as an actual argument. Constant - a constant is passed as an actual argument. Unknown - neither of the above. - Integer and real constants are represented as IPA_CONST and Fortran - constants are represented as IPA_CONST_REF. Finally, IPA_CONST_MEMBER_PTR - stands for C++ member pointers constants. */ + Integer and real constants are represented as IPA_CONST. + Finally, IPA_CONST_MEMBER_PTR stands for C++ member pointers constants. */ enum jump_func_type { IPA_UNKNOWN = 0, /* newly allocated and zeroed jump functions default */ IPA_CONST, - IPA_CONST_REF, IPA_CONST_MEMBER_PTR, IPA_PASS_THROUGH }; @@ -52,13 +50,11 @@ enum jump_func_type IPA_CONST_VALUE - simple scalar constant, Cval of formal f will have a constant value if all callsites to this function have the same constant value passed to f. - Integer and real constants are represented as IPA_CONST and Fortran - constants are represented as IPA_CONST_REF. */ + Integer and real constants are represented as IPA_CONST. */ enum ipa_lattice_type { IPA_BOTTOM, IPA_CONST_VALUE, - IPA_CONST_VALUE_REF, IPA_TOP }; |