From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1611) id 9D90B382E19E; Wed, 14 Dec 2022 14:08:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D90B382E19E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671026921; bh=FBsCFPTdVWxPT2memayxAhjw3HadSw0N6bpzb1LHESE=; h=From:To:Subject:Date:From; b=C2BqnN4vZeP5XY1iHBAO3usbhXfKVXe9yIAEmfka8Z/aEtK6k5AJqkRdz7+29s6CM HKxaSd7RG0AZFn3QldueqkSeJbaIahAo5MkFRs0PbFwjz4xTDk9fDOogieyuFLHsAd /sboUq26Xn/6LaXTufIPcrQtAwBGy3q39PI8PUSQ= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Jambor To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4700] ipa-sra: Fix parameter description. X-Act-Checkin: gcc X-Git-Author: Martin Jambor X-Git-Refname: refs/heads/master X-Git-Oldrev: 8c2451ba4601739654e2ea4907d6fa2a00d660aa X-Git-Newrev: 049dccd080c6ad74a8d0923c57c8a488a9a18496 Message-Id: <20221214140841.9D90B382E19E@sourceware.org> Date: Wed, 14 Dec 2022 14:08:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:049dccd080c6ad74a8d0923c57c8a488a9a18496 commit r13-4700-g049dccd080c6ad74a8d0923c57c8a488a9a18496 Author: Martin Jambor Date: Wed Dec 14 15:06:30 2022 +0100 ipa-sra: Fix parameter description. 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 * doc/invoke.texi (ipa-sra-ptrwrap-growth-factor): Fix the description. * params.opt (ipa-sra-ptrwrap-growth-factor): Likewise. Diff: --- gcc/doc/invoke.texi | 3 ++- gcc/params.opt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 7dc1d45e275..f48df64cc2a 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 diff --git a/gcc/params.opt b/gcc/params.opt index e0fd05fb44a..e0380bf10f9 100644 --- a/gcc/params.opt +++ b/gcc/params.opt @@ -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