IPA-CP: Always access param_ipcp_unit_growth through opt_for_fn
authorMartin Jambor <mjambor@suse.cz>
Fri, 10 Jan 2020 10:00:05 +0000 (11:00 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 10 Jan 2020 10:00:05 +0000 (11:00 +0100)
commitf7725a488382e7ed47a808cecaed692e0ed78edb
treec32974af9191c6ad31e3548e52d29378406c6795
parentde2e08355aa51eb1596cfe674bf1ab1a8fc83976
IPA-CP: Always access param_ipcp_unit_growth through opt_for_fn

2020-01-10  Martin Jambor  <mjambor@suse.cz>

* params.opt (param_ipcp_unit_growth): Mark as Optimization.
* ipa-cp.c (max_new_size): Removed.
(orig_overall_size): New variable.
(get_max_overall_size): New function.
(estimate_local_effects): Use it.  Adjust dump.
(decide_about_value): Likewise.
(ipcp_propagate_stage): Do not calculate max_new_size, just store
orig_overall_size.  Adjust dump.
(ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.

From-SVN: r280099
gcc/ChangeLog
gcc/ipa-cp.c
gcc/params.opt