From 9fb50ad822bd57786b12a2fc90c61032c519a621 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 8 Jun 2018 14:31:09 +0200 Subject: Port edge_growth_cache to call_summary. 2018-06-08 Martin Liska * ipa-inline-analysis.c (inline_edge_removal_hook): Remove. (initialize_growth_caches): Remove. (free_growth_caches): Likewise. (do_estimate_edge_time): Use edge_growth_cache. (do_estimate_edge_size): Likewise. (do_estimate_edge_hints): Likewise. * ipa-inline.c (reset_edge_caches): Likewise. (recursive_inlining): Likewise. (inline_small_functions): Likewise. * ipa-inline.h (initialize_growth_caches): Remove. (estimate_edge_size): Likewise. (estimate_edge_time): Likewise. (estimate_edge_hints): Likewise. (reset_edge_growth_cache): Likewise. * symbol-summary.h (call_summary::remove): New method. From-SVN: r261318 --- gcc/symbol-summary.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/symbol-summary.h') diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h index 4896c97..12e5020 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -384,6 +384,18 @@ public: return get (hashable_uid (edge), false); } + /* Remove edge from summary. */ + void remove (cgraph_edge *edge) + { + int uid = hashable_uid (edge); + T **v = m_map.get (uid); + if (v) + { + m_map.remove (uid); + release (*v); + } + } + /* Return number of elements handled by data structure. */ size_t elements () { -- cgit v1.1