ipa-fnsummary.c (ipa_call_context): New constructor.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 3 Nov 2019 13:52:59 +0000 (14:52 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 3 Nov 2019 13:52:59 +0000 (13:52 +0000)
commit1532500ecbe8dbf59bef498e46b447b3a6b0fa65
treef086db17aabe356ccc9facab8927901ed949d08d
parenta9a0fd0e2896e1f4987d4be7094e292f46532046
ipa-fnsummary.c (ipa_call_context): New constructor.

* ipa-fnsummary.c (ipa_call_context): New constructor.
(estimate_node_size_and_time): Turn to ...
(ipa_call_context::estimate_size_and_time): ... this one.
(ipa_call_context::release): New.
* ipa-fnsummary.h (ipa_call_context): New class.
(estimate_node_size_and_time): Remove.
* ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
do_estimate_edge_hints): Update.

From-SVN: r277755
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/ipa-fnsummary.h
gcc/ipa-inline-analysis.c