Message ID | 116bcbd3-f5f9-4219-953e-4ec9cef3c457@suse.cz |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp69615wrn; Tue, 13 Dec 2022 23:55:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7565zvii02TKoLd0Dlglx9HNXn0By65c/xiygot2W2JJgH0o6OdY2sDvMtNdSDmBWhmXIp X-Received: by 2002:a17:907:6d96:b0:7c1:7442:8b77 with SMTP id sb22-20020a1709076d9600b007c174428b77mr11705342ejc.5.1671004536704; Tue, 13 Dec 2022 23:55:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671004536; cv=none; d=google.com; s=arc-20160816; b=b3vYzgYpUTYtqYoZ0N2gcyUKTxzmI8Ri9DItAcXEImDC+N7jBRUc8A+bzvcriDWHRk hxGhJ/tOTKVWNOPu0eAI6PgfEbCWS6YF4gpGRPaJhNxzKbz1GnA963WNCUkYF2vm4Qqd KKh93yhGKsReL/mA7wgHZJL0EffyAv8QYMtt+ER5+RiiaMbYUTdap0c/gGwKNkX2WyzM EXOZRe9rByQ4UhGe7tCBuihQb3PSN1G/EYLdIImzdI+gT4FX7p72FUfuuhOidvxUcFwv TMvzhfu5gS1rYtFjIBe7ryDcC1PYsfnVcVaJx5HngVU9E74q2qDRRLWf9/jxglqEoG4o jPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding:cc :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=2jI346xKvvbXHB4xgvS8zXnKAuqUyen/m+TOEA7RPvA=; b=ATIs1L5RjIiW2y5KQ2s9K8tyfblHpeX/yDaFszUMtuRELIpXtj/hvvxbeIPhS/ZpaL ewtlZ+TU2IOX6TdJfeF9l1tnK+oMDB+S4GPsLOiAdtngGBXIONbOAD56ccRXAJ0LE10l ArlimYluDf0n4G4D5+28atND5xcPE5yifIVVExkD9juf5YULLTYwy7QKCLwoe+wceAIC fOze2G5KAK0JZLu/Mcjz1dXuLgLSXYeuurRkKNr1CTbD8YcFDgonxrRr+dhN5gQKK+qw 5lpeFj+n1JeWPPOfC2WiZTiQILyqWEbSeTFsetMbUgTsy57F7F1ksQ80AYJa875tZuTX xVXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=wvG5LyP3; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id sa17-20020a1709076d1100b007bc93454b3fsi3775990ejc.953.2022.12.13.23.55.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 23:55:36 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=wvG5LyP3; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB1CB3835541 for <ouuuleilei@gmail.com>; Wed, 14 Dec 2022 07:55:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 3EECA38358BE for <gcc-patches@gcc.gnu.org>; Wed, 14 Dec 2022 07:55:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3EECA38358BE Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 23DC61FE13; Wed, 14 Dec 2022 07:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1671004506; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2jI346xKvvbXHB4xgvS8zXnKAuqUyen/m+TOEA7RPvA=; b=wvG5LyP3QLak15Q1XfXxxV51SCe/RHI7joe696UtL6A8zj+s1fg4LKGTHqN4XkEEYdeJH1 QpSYCocsBCtlnnoHmlXJ5DbQ4keairaxk/tbw0SLayToMbfOVZtVsRJmzp0l106JgoV9JE hkUpYARCyEvyKI+anRV9yt2BOQPLFxQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1671004506; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2jI346xKvvbXHB4xgvS8zXnKAuqUyen/m+TOEA7RPvA=; b=cxWKX+AnB2rRQ0W/W2+mHbuoZtaimL/sAci+xCCHX6CgAeEn/bDo2DKhfYIVspW9kJKgIz GbQBDS42IA0i6BCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 12BA5138F6; Wed, 14 Dec 2022 07:55:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lLCwA1qBmWPDSwAAMHmgww (envelope-from <mliska@suse.cz>); Wed, 14 Dec 2022 07:55:06 +0000 Message-ID: <116bcbd3-f5f9-4219-953e-4ec9cef3c457@suse.cz> Date: Wed, 14 Dec 2022 08:55:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 From: =?utf-8?q?Martin_Li=C5=A1ka?= <mliska@suse.cz> Subject: [PATCH (pushed)] docs: document --param=ipa-sra-ptrwrap-growth-factor To: gcc-patches@gcc.gnu.org Content-Language: en-US Cc: Martin Jambor <mjambor@suse.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752175252896356036?= X-GMAIL-MSGID: =?utf-8?q?1752175252896356036?= |
Series |
[(pushed)] docs: document --param=ipa-sra-ptrwrap-growth-factor
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Martin Liška
Dec. 14, 2022, 7:55 a.m. UTC
gcc/ChangeLog: * doc/invoke.texi: Document ipa-sra-ptrwrap-growth-factor. --- gcc/doc/invoke.texi | 5 +++++ 1 file changed, 5 insertions(+)
Comments
Hi, On Wed, Dec 14 2022, Martin Liška wrote: > gcc/ChangeLog: > > * doc/invoke.texi: Document ipa-sra-ptrwrap-growth-factor. Thanks or spotting this. Seeing the email also averted me to the fact that what I wrote in the parameter description is almost the opposite of what it should say. I'll fix that momentarily with the following patch. Thanks again, Martin 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 | 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
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0459714d100..7dc1d45e275 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -15520,6 +15520,11 @@ parameters only when their cumulative size is less or equal to @option{ipa-sra-ptr-growth-factor} times the size of the original 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. + @item ipa-sra-max-replacements Maximum pieces of an aggregate that IPA-SRA tracks. As a consequence, it is also the maximum number of replacements of a formal