From 61890ff25a24b2ddb289c61c1e5fbcae6f9f613d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 22 May 2017 11:35:21 +0200 Subject: ipa-inline-analysis.c (account_size_time): Rename to ... * ipa-inline-analysis.c (account_size_time): Rename to ... (inline_summary::account_size_time): ... this one. (reset_ipa_call_summary): Turn to ... (ipa_call_summary::reset): ... this one. (reset_inline_summary): Turn to ... (inline_summary::reset): ... this one. (inline_summary_t::remove): Update. (inline_summary_t::duplicate): Update. (ipa_call_summary_t::remove): Update. (dump_inline_summary): Update. (estimate_function_body_sizes): Update. (compute_inline_parameters): Update. (estimate_node_size_and_time): Update. (inline_merge_summary): Update. (inline_update_overall_summary): Update. (inline_read_section): Update. (inline_write_summary): Update. * ipa-inline.h (inline_summary): Rename entry to size_time_table; add account_size_time and reset member functions. (ipa_call_summary): Add reset function. * ipa-predicate.h (predicate::operator &): Constify. From-SVN: r248322 --- gcc/ipa-inline.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'gcc/ipa-inline.h') diff --git a/gcc/ipa-inline.h b/gcc/ipa-inline.h index 727cf63..eb23533 100644 --- a/gcc/ipa-inline.h +++ b/gcc/ipa-inline.h @@ -127,7 +127,7 @@ struct GTY(()) inline_summary /* Conditional size/time information. The summaries are being merged during inlining. */ conditions conds; - vec *entry; + vec *size_time_table; /* Predicate on when some loop in the function becomes to have known bounds. */ @@ -153,10 +153,16 @@ struct GTY(()) inline_summary inlinable (false), contains_cilk_spawn (false), single_caller (false), fp_expressions (false), estimated_stack_size (false), stack_frame_offset (false), time (0), size (0), conds (NULL), - entry (NULL), loop_iterations (NULL), loop_stride (NULL), + size_time_table (NULL), loop_iterations (NULL), loop_stride (NULL), array_index (NULL), growth (0), scc_no (0) { } + + /* Record time and size under given predicates. */ + void account_size_time (int, sreal, const predicate &, const predicate &); + + /* Reset inline summary to empty state. */ + void reset (struct cgraph_node *node); }; class GTY((user)) inline_summary_t: public function_summary @@ -201,6 +207,9 @@ struct ipa_call_summary loop_depth (0) { } + + /* Reset inline summary to empty state. */ + void reset (); }; class ipa_call_summary_t: public call_summary -- cgit v1.1