aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-01-13 14:38:59 +0100
committerMartin Liska <mliska@suse.cz>2020-01-13 14:38:59 +0100
commit12122f94b4dadcc096c97da13afbcbd13764e6e3 (patch)
tree781acf94b6a758c52eeddb48a9cd1106dc11e3e7
parente13f37d9f7600d337f8a4589b5f985ded9e05852 (diff)
downloadgcc-12122f94b4dadcc096c97da13afbcbd13764e6e3.zip
gcc-12122f94b4dadcc096c97da13afbcbd13764e6e3.tar.gz
gcc-12122f94b4dadcc096c97da13afbcbd13764e6e3.tar.bz2
Remove usage of legacy param_ipa_cp_unit_growth.
* ipa-cp.c (get_max_overall_size): Use newly renamed param param_ipa_cp_unit_growth. * params.opt: Remove legacy param name.
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-cp.c2
-rw-r--r--gcc/params.opt6
3 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2a4b03a..5192f8b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2020-01-13 Martin Liska <mliska@suse.cz>
+
+ * ipa-cp.c (get_max_overall_size): Use newly
+ renamed param param_ipa_cp_unit_growth.
+ * params.opt: Remove legacy param name.
+
2020-01-13 Martin Sebor <msebor@redhat.com>
PR tree-optimization/93213
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index 1c1103ca..612f3d0 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -3432,7 +3432,7 @@ get_max_overall_size (cgraph_node *node)
long large_unit = opt_for_fn (node->decl, param_large_unit_insns);
if (max_new_size < large_unit)
max_new_size = large_unit;
- int unit_growth = opt_for_fn (node->decl, param_ipcp_unit_growth);
+ int unit_growth = opt_for_fn (node->decl, param_ipa_cp_unit_growth);
max_new_size += max_new_size * unit_growth / 100 + 1;
return max_new_size;
}
diff --git a/gcc/params.opt b/gcc/params.opt
index a669bbc1..31cc200 100644
--- a/gcc/params.opt
+++ b/gcc/params.opt
@@ -215,7 +215,7 @@ Common Joined UInteger Var(param_ipa_cp_single_call_penalty) Init(15) IntegerRan
Percentage penalty functions containing a single call to another function will receive when they are evaluated for cloning.
-param=ipa-cp-unit-growth=
-Common Joined UInteger Var(param_ipa_cp_unit_growth) Init(10) Param
+Common Joined UInteger Var(param_ipa_cp_unit_growth) Init(10) Param Optimization
How much can given compilation unit grow because of the interprocedural constant propagation (in percent).
-param=ipa-cp-value-list-size=
@@ -246,10 +246,6 @@ Maximum pieces that IPA-SRA tracks per formal parameter, as a consequence, also
Common Joined UInteger Var(param_ipa_sra_ptr_growth_factor) Init(2) Param Optimization
Maximum allowed growth of number and total size of new parameters that ipa-sra replaces a pointer to an aggregate with.
--param=ipcp-unit-growth=
-Common Joined UInteger Var(param_ipcp_unit_growth) Optimization Init(10) Param
-How much can given compilation unit grow because of the interprocedural constant propagation (in percent).
-
-param=ira-loop-reserved-regs=
Common Joined UInteger Var(param_ira_loop_reserved_regs) Init(2) Param Optimization
The number of registers in each class kept unused by loop invariant motion.