aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.h
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2011-09-02 17:37:38 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2011-09-02 17:37:38 +0200
commitd7da5cc85cdef4207d10e8b79dce79ed12353fb9 (patch)
treec5080ee359d717b439069963cb722bd18f086222 /gcc/ipa-prop.h
parente9e1d143b5ea00f99191cd0e65c09ee972ebcedb (diff)
downloadgcc-d7da5cc85cdef4207d10e8b79dce79ed12353fb9.zip
gcc-d7da5cc85cdef4207d10e8b79dce79ed12353fb9.tar.gz
gcc-d7da5cc85cdef4207d10e8b79dce79ed12353fb9.tar.bz2
ipa-prop.h (ipa_node_params): Removed fields called_with_var_arguments and node_versionable.
2011-09-02 Martin Jambor <mjambor@suse.cz> * ipa-prop.h (ipa_node_params): Removed fields called_with_var_arguments and node_versionable. (ipa_set_called_with_variable_arg): Removed. (ipa_is_called_with_var_arguments): Likewise. * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert. (determine_versionability): Do not check for type attributes and va builtins. Record versionability into inline summary. (initialize_node_lattices): Do not check ipa_is_called_with_var_arguments. (propagate_constants_accross_call): Likewise, ignore arguments we do not have PARM_DECLs for, set variable flag for parameters that were not passed a value. (create_specialized_node): Dump info that we cannot change signature. * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable number of arguments. (ipa_make_edge_direct_to_target): Likewise. (ipa_update_after_lto_read): Likewise. (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag. * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if they were remapped. * testsuite/gcc.dg/ipa/ipcp-3.c: New test. From-SVN: r178485
Diffstat (limited to 'gcc/ipa-prop.h')
-rw-r--r--gcc/ipa-prop.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 126df48..618b5a0 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -168,11 +168,6 @@ struct ipa_node_params
/* If this node is an ipa-cp clone, these are the known values that describe
what it has been specialized for. */
VEC (tree, heap) *known_vals;
- /* Whether this function is called with variable number of actual
- arguments. */
- unsigned called_with_var_arguments : 1;
- /* Set when it is possible to create specialized versions of this node. */
- unsigned node_versionable : 1;
/* Whether the param uses analysis has already been performed. */
unsigned uses_analysis_done : 1;
/* Whether the function is enqueued in ipa-cp propagation stack. */
@@ -224,22 +219,6 @@ ipa_is_param_used (struct ipa_node_params *info, int i)
return VEC_index (ipa_param_descriptor_t, info->descriptors, i)->used;
}
-/* Flag this node as having callers with variable number of arguments. */
-
-static inline void
-ipa_set_called_with_variable_arg (struct ipa_node_params *info)
-{
- info->called_with_var_arguments = 1;
-}
-
-/* Have we detected this node was called with variable number of arguments? */
-
-static inline bool
-ipa_is_called_with_var_arguments (struct ipa_node_params *info)
-{
- return info->called_with_var_arguments;
-}
-
/* ipa_edge_args stores information related to a callsite and particularly its
arguments. It can be accessed by the IPA_EDGE_REF macro. */
typedef struct GTY(()) ipa_edge_args