public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Martin Jambor <mjambor@suse.cz>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Jan Hubicka <hubicka@ucw.cz>
Subject: Re: [PATCH] ipa: Avoid duplicate replacements in IPA-SRA transformation phase
Date: Fri, 15 Mar 2024 19:04:04 +0100	[thread overview]
Message-ID: <ZfSNlK2C0aVvoUgU@tucnak> (raw)
In-Reply-To: <ri6r0gbwf7l.fsf@virgil.suse.cz>

On Fri, Mar 15, 2024 at 06:57:18PM +0100, Martin Jambor wrote:
> --- a/gcc/ipa-param-manipulation.cc
> +++ b/gcc/ipa-param-manipulation.cc
> @@ -1525,6 +1525,22 @@ ipa_param_body_adjustments::common_initialization (tree old_fndecl,
>  		     replacement with a constant (for split aggregates passed
>  		     by value).  */
>  
> +		  if (split[parm_num])
> +		    {
> +		      /* We must be careful not to add a duplicate
> +			 replacement. */
> +		      sort_replacements ();
> +		      ipa_param_body_replacement *pbr =
> +			lookup_replacement_1 (m_oparms[parm_num],
> +					      av.unit_offset);

Formatting nit, the = should be on the next line before
lookup_replacement_1.
		      ipa_param_body_replacement *pbr
			= lookup_replacement_1 (m_oparms[parm_num],
						av.unit_offset);

	Jakub


  reply	other threads:[~2024-03-15 18:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-15 17:57 Martin Jambor
2024-03-15 18:04 ` Jakub Jelinek [this message]
2024-03-28 15:38 ` Martin Jambor
2024-04-04 15:23   ` Jan Hubicka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZfSNlK2C0aVvoUgU@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=mjambor@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).