public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH/RFC take #2] cprop_hardreg... Third time's a charm.
Date: Sun, 12 Jun 2022 11:58:48 -0600	[thread overview]
Message-ID: <2c8b7c5c-9276-84fd-b912-2c74097cef84@gmail.com> (raw)
In-Reply-To: <006c01d8776f$2c67b960$85372c20$@nextmovesoftware.com>



On 6/3/2022 11:27 AM, Roger Sayle wrote:
> Hi Richard,
> Here's a revised version of my patch incorporating both your suggestions.
> The algorithm now uses two worklist vectors, and pointers to them,
> alternating between them on each iteration, which allows the code to
> handle an arbitrary number of passes without the previous code duplication.
> This then allows a "for (pass=2; pass<=passes; pass++)"-like idiom, that allows
> it to try two passes (the current behaviour) at -O1, but three passes with
> -O2 and higher.  This also provides a convenient point, should someone
> wish to control the number of cprop_hardreg pass iterations from the
> command line (or a backend) in future.
>
> This patch has been retested on x86_64-pc-linux-gnu, both with an without
> the proposed i386 backend patch for reduced register shuffling, with
> make bootstrap and make -k check, both with/without target_board=
> unix{-m32}, with no new failures.  Is this what you had in mind?
>
> 2022-06-03  Roger Sayle  <roger@nextmovesoftware.com>
>              Richard Biener  <rguenther@suse.de>
>
> gcc/ChangeLog
>          * regcprop.cc (pass_cprop_hardreg::execute): Perform a third
>          iteration over each basic block that was updated by the second
>          iteration.
OK
jeff


      reply	other threads:[~2022-06-12 17:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 17:27 Roger Sayle
2022-06-12 17:58 ` Jeff Law [this message]

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=2c8b7c5c-9276-84fd-b912-2c74097cef84@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    /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).