public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@redhat.com>
To: "Martin Liška" <mliska@suse.cz>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>,
	Andrew MacLeod <amacleod@redhat.com>
Subject: Re: [PATCH][pushed] remove dead member variable in dom_jt_state
Date: Thu, 30 Jun 2022 10:42:55 +0200	[thread overview]
Message-ID: <CAGm3qMVocM479RuYFEhsCB11cpzX_Op01Z0D5KrgfMsikn3Q0A@mail.gmail.com> (raw)
In-Reply-To: <c1f1167e-157a-0f6e-34bb-2b35bc30ac1e@suse.cz>

Anything dealing with the hybrid threader could probably use a little
clean up.  I've neglected to do so, as I'm hoping to nuke the forward
threader altogether and replace it with the backwards threader.
However, in order to do this, we need to implement prange (pointers)
and frange (floats) to handle the slack currently being picked up by
DOM.

Anywhoo...thanks for doing this.
Aldy

On Thu, Jun 30, 2022 at 10:29 AM Martin Liška <mliska@suse.cz> wrote:
>
> Hi.
>
> I'm going to push the following clean-up.
>
> Martin
>
> gcc/ChangeLog:
>
>         * tree-ssa-dom.cc (pass_dominator::execute): Remove m_ranger as
>         it is unused.
> ---
>  gcc/tree-ssa-dom.cc | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/gcc/tree-ssa-dom.cc b/gcc/tree-ssa-dom.cc
> index dcaf4672b66..9b6520fd2dd 100644
> --- a/gcc/tree-ssa-dom.cc
> +++ b/gcc/tree-ssa-dom.cc
> @@ -588,9 +588,8 @@ record_edge_info (basic_block bb)
>  class dom_jt_state : public jt_state
>  {
>  public:
> -  dom_jt_state (const_and_copies *copies, avail_exprs_stack *avails,
> -               gimple_ranger *ranger)
> -    : m_copies (copies), m_avails (avails), m_ranger (ranger)
> +  dom_jt_state (const_and_copies *copies, avail_exprs_stack *avails)
> +    : m_copies (copies), m_avails (avails)
>    {
>    }
>    void push (edge e) override
> @@ -613,7 +612,6 @@ public:
>  private:
>    const_and_copies *m_copies;
>    avail_exprs_stack *m_avails;
> -  gimple_ranger *m_ranger;
>  };
>
>  void
> @@ -794,7 +792,7 @@ pass_dominator::execute (function *fun)
>    gimple_ranger *ranger = enable_ranger (fun);
>    path_range_query path_query (/*resolve=*/true, ranger);
>    dom_jt_simplifier simplifier (avail_exprs_stack, ranger, &path_query);
> -  dom_jt_state state (const_and_copies, avail_exprs_stack, ranger);
> +  dom_jt_state state (const_and_copies, avail_exprs_stack);
>    jump_threader threader (&simplifier, &state);
>    dom_opt_dom_walker walker (CDI_DOMINATORS,
>                              &threader,
> --
> 2.36.1
>


      reply	other threads:[~2022-06-30  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30  8:29 Martin Liška
2022-06-30  8:42 ` Aldy Hernandez [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=CAGm3qMVocM479RuYFEhsCB11cpzX_Op01Z0D5KrgfMsikn3Q0A@mail.gmail.com \
    --to=aldyh@redhat.com \
    --cc=amacleod@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mliska@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).