ipa-sra: Fix parameter description.
authorMartin Jambor <mjambor@suse.cz>
Wed, 14 Dec 2022 14:06:30 +0000 (15:06 +0100)
committerMartin Jambor <mjambor@suse.cz>
Wed, 14 Dec 2022 14:08:10 +0000 (15:08 +0100)
Somehow I made the description of the parameter almost the opposite of
what I wanted to say.  Fixed by this patch.

Tested by building gcc on x86_64-linux and make info and make pdf.

gcc/ChangeLog:

2022-12-14  Martin Jambor  <mjambor@suse.cz>

* doc/invoke.texi (ipa-sra-ptrwrap-growth-factor): Fix the
description.
* params.opt (ipa-sra-ptrwrap-growth-factor): Likewise.

gcc/doc/invoke.texi
gcc/params.opt

index 7dc1d45..f48df64 100644 (file)
@@ -15523,7 +15523,8 @@ pointer parameter.
 @item ipa-sra-ptrwrap-growth-factor
 Additional maximum allowed growth of total size of new parameters
 that ipa-sra replaces a pointer to an aggregate with,
-if it points to a local variable that the caller never writes to.
+if it points to a local variable that the caller only writes to and
+passes it as an argument to other functions.
 
 @item ipa-sra-max-replacements
 Maximum pieces of an aggregate that IPA-SRA tracks.  As a
index e0fd05f..e0380bf 100644 (file)
@@ -296,7 +296,7 @@ Maximum allowed growth of total size of new parameters that ipa-sra replaces a p
 
 -param=ipa-sra-ptrwrap-growth-factor=
 Common Joined UInteger Var(param_ipa_sra_ptrwrap_growth_factor) Init(4) IntegerRange(1, 8) Param Optimization
-Additional maximum allowed growth of total size of new parameters that ipa-sra replaces a pointer to an aggregate with, if it points to a local variable that the caller never writes to.
+Additional maximum allowed growth of total size of new parameters that ipa-sra replaces a pointer to an aggregate with, if it points to a local variable that the caller only writes to and passes it as an argument to functions.
 
 -param=ira-loop-reserved-regs=
 Common Joined UInteger Var(param_ira_loop_reserved_regs) Init(2) Param Optimization