aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-08 11:00:07 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-08 11:00:07 +0000
commitab576610908b36b8ceb63c1977f40b957657bdcd (patch)
tree461d5c86d39002c5e98d9f547aaff1b682781d4a /gcc
parentb652cb7eec744128892ab74473e52820b4d40dac (diff)
2010-03-08 Martin Jambor <mjambor@suse.cz>
* ipa-prop.h (struct ipa_param_descriptor): Removed the called field. (ipa_is_param_called): Removed. * ipa-prop.c (ipa_note_param_call): Do not set the called flag. (ipa_print_node_params): Do not print the called flag. (ipa_write_node_info): Do not stream the called flag. (ipa_read_node_info): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/ipa-prop.c14
-rw-r--r--gcc/ipa-prop.h13
3 files changed, 11 insertions, 25 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c495c34377a..bc6d1e0851f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2010-03-08 Martin Jambor <mjambor@suse.cz>
+
+ * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
+ (ipa_is_param_called): Removed.
+ * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
+ (ipa_print_node_params): Do not print the called flag.
+ (ipa_write_node_info): Do not stream the called flag.
+ (ipa_read_node_info): Likewise.
+
2010-03-07 Jakub Jelinek <jakub@redhat.com>
PR debug/43176
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 71f79bd19b0..561601492e7 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -746,8 +746,6 @@ ipa_note_param_call (struct ipa_node_params *info, int formal_id,
struct ipa_param_call_note *note;
basic_block bb = gimple_bb (stmt);
- info->params[formal_id].called = 1;
-
note = XCNEW (struct ipa_param_call_note);
note->formal_id = formal_id;
note->stmt = stmt;
@@ -1425,8 +1423,6 @@ ipa_print_node_params (FILE * f, struct cgraph_node *node)
: "(unnamed)"));
if (ipa_is_param_modified (info, i))
fprintf (f, " modified");
- if (ipa_is_param_called (info, i))
- fprintf (f, " called");
fprintf (f, "\n");
}
}
@@ -2024,10 +2020,7 @@ ipa_write_node_info (struct output_block *ob, struct cgraph_node *node)
gcc_assert (!info->node_enqueued);
gcc_assert (!info->ipcp_orig_node);
for (j = 0; j < ipa_get_param_count (info); j++)
- {
- bp_pack_value (bp, info->params[j].modified, 1);
- bp_pack_value (bp, info->params[j].called, 1);
- }
+ bp_pack_value (bp, info->params[j].modified, 1);
lto_output_bitpack (ob->main_stream, bp);
bitpack_delete (bp);
for (e = node->callees; e; e = e->next_callee)
@@ -2071,10 +2064,7 @@ ipa_read_node_info (struct lto_input_block *ib, struct cgraph_node *node,
}
info->node_enqueued = false;
for (k = 0; k < ipa_get_param_count (info); k++)
- {
- info->params[k].modified = bp_unpack_value (bp, 1);
- info->params[k].called = bp_unpack_value (bp, 1);
- }
+ info->params[k].modified = bp_unpack_value (bp, 1);
bitpack_delete (bp);
for (e = node->callees; e; e = e->next_callee)
{
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 90055e124bc..aca4342aa93 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -169,8 +169,6 @@ struct ipa_param_descriptor
tree decl;
/* Whether the value parameter has been modified within the function. */
unsigned modified : 1;
- /* Whether the parameter has been used as a call destination. */
- unsigned called : 1;
};
/* ipa_node_params stores information related to formal parameters of functions
@@ -248,17 +246,6 @@ ipa_is_param_modified (struct ipa_node_params *info, int i)
return info->params[i].modified;
}
-/* Return the called flag corresponding to the Ith formal parameter of the
- function associated with INFO. Note that there is no setter method as the
- goal is to set all flags when building the array in
- ipa_detect_called_params. */
-
-static inline bool
-ipa_is_param_called (struct ipa_node_params *info, int i)
-{
- return info->params[i].called;
-}
-
/* Flag this node as having callers with variable number of arguments. */
static inline void