public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Malcolm <dmalcolm@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: PING Re: [PATCH 02/10] Add 'final' and 'override' on dom_walker vfunc impls
Date: Mon, 13 Jun 2022 14:23:31 -0400	[thread overview]
Message-ID: <7796c1990a5320aa144401bd222a11db574f74d2.camel@redhat.com> (raw)
In-Reply-To: <20220523192834.3785673-3-dmalcolm@redhat.com>

Ping for this patch:
  https://gcc.gnu.org/pipermail/gcc-patches/2022-May/595436.html

OK for tunk?

Thanks
Dave

On Mon, 2022-05-23 at 15:28 -0400, David Malcolm wrote:
> gcc/ChangeLog:
>         * compare-elim.cc: Add "final" and "override" to dom_walker
> vfunc
>         implementations, removing redundant "virtual" as appropriate.
>         * gimple-ssa-strength-reduction.cc: Likewise.
>         * ipa-prop.cc: Likewise.
>         * rtl-ssa/blocks.cc: Likewise.
>         * tree-into-ssa.cc: Likewise.
>         * tree-ssa-dom.cc: Likewise.
>         * tree-ssa-math-opts.cc: Likewise.
>         * tree-ssa-phiopt.cc: Likewise.
>         * tree-ssa-propagate.cc: Likewise.
>         * tree-ssa-sccvn.cc: Likewise.
>         * tree-ssa-strlen.cc: Likewise.
>         * tree-ssa-uncprop.cc: Likewise.
> 
> Signed-off-by: David Malcolm <dmalcolm@redhat.com>
> ---
>  gcc/compare-elim.cc                  |  2 +-
>  gcc/gimple-ssa-strength-reduction.cc |  2 +-
>  gcc/ipa-prop.cc                      |  4 ++--
>  gcc/rtl-ssa/blocks.cc                |  4 ++--
>  gcc/tree-into-ssa.cc                 | 10 +++++-----
>  gcc/tree-ssa-dom.cc                  |  4 ++--
>  gcc/tree-ssa-math-opts.cc            |  2 +-
>  gcc/tree-ssa-phiopt.cc               |  4 ++--
>  gcc/tree-ssa-propagate.cc            |  4 ++--
>  gcc/tree-ssa-sccvn.cc                |  4 ++--
>  gcc/tree-ssa-strlen.cc               |  4 ++--
>  gcc/tree-ssa-uncprop.cc              |  4 ++--
>  12 files changed, 24 insertions(+), 24 deletions(-)
> 
> diff --git a/gcc/compare-elim.cc b/gcc/compare-elim.cc
> index e869d9d3249..4a23202f8ff 100644
> --- a/gcc/compare-elim.cc
> +++ b/gcc/compare-elim.cc
> @@ -283,7 +283,7 @@ public:
>    find_comparison_dom_walker (cdi_direction direction)
>      : dom_walker (direction) {}
>  
> -  virtual edge before_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
>  };
>  
>  /* Return true if conforming COMPARE with EH_NOTE is redundant with
> comparison
> diff --git a/gcc/gimple-ssa-strength-reduction.cc b/gcc/gimple-ssa-
> strength-reduction.cc
> index 2b559e96fc8..fb2bb9f4e74 100644
> --- a/gcc/gimple-ssa-strength-reduction.cc
> +++ b/gcc/gimple-ssa-strength-reduction.cc
> @@ -1729,7 +1729,7 @@ class find_candidates_dom_walker : public
> dom_walker
>  public:
>    find_candidates_dom_walker (cdi_direction direction)
>      : dom_walker (direction) {}
> -  virtual edge before_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
>  };
>  
>  /* Find strength-reduction candidates in block BB.  */
> diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc
> index c6c745f84a0..03f0ba2ec75 100644
> --- a/gcc/ipa-prop.cc
> +++ b/gcc/ipa-prop.cc
> @@ -3004,7 +3004,7 @@ public:
>    analysis_dom_walker (struct ipa_func_body_info *fbi)
>      : dom_walker (CDI_DOMINATORS), m_fbi (fbi) {}
>  
> -  virtual edge before_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
>  
>  private:
>    struct ipa_func_body_info *m_fbi;
> @@ -5653,7 +5653,7 @@ public:
>      : dom_walker (CDI_DOMINATORS), m_fbi (fbi), m_descriptors (descs),
>        m_aggval (av), m_something_changed (sc) {}
>  
> -  virtual edge before_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
>    bool cleanup_eh ()
>      { return gimple_purge_all_dead_eh_edges (m_need_eh_cleanup); }
>  
> diff --git a/gcc/rtl-ssa/blocks.cc b/gcc/rtl-ssa/blocks.cc
> index 959fad8f829..6b03dd03747 100644
> --- a/gcc/rtl-ssa/blocks.cc
> +++ b/gcc/rtl-ssa/blocks.cc
> @@ -85,8 +85,8 @@ class function_info::bb_walker : public dom_walker
>  {
>  public:
>    bb_walker (function_info *, build_info &);
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  
>  private:
>    // Information about the function we're building.
> diff --git a/gcc/tree-into-ssa.cc b/gcc/tree-into-ssa.cc
> index 46df57ae0e1..9631d8c6556 100644
> --- a/gcc/tree-into-ssa.cc
> +++ b/gcc/tree-into-ssa.cc
> @@ -1462,8 +1462,8 @@ public:
>    rewrite_dom_walker (cdi_direction direction)
>      : dom_walker (direction, ALL_BLOCKS, NULL) {}
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  };
>  
>  /* SSA Rewriting Step 1.  Initialization, create a block local stack
> @@ -2148,8 +2148,8 @@ public:
>    rewrite_update_dom_walker (cdi_direction direction)
>      : dom_walker (direction, ALL_BLOCKS, NULL) {}
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  };
>  
>  /* Initialization of block data structures for the incremental SSA
> @@ -2300,7 +2300,7 @@ public:
>    mark_def_dom_walker (cdi_direction direction);
>    ~mark_def_dom_walker ();
>  
> -  virtual edge before_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
>  
>  private:
>    /* Notice that this bitmap is indexed using variable UIDs, so it
> must be
> diff --git a/gcc/tree-ssa-dom.cc b/gcc/tree-ssa-dom.cc
> index 97e17ca68e4..1a44b10756f 100644
> --- a/gcc/tree-ssa-dom.cc
> +++ b/gcc/tree-ssa-dom.cc
> @@ -737,8 +737,8 @@ public:
>        m_threader = threader;
>      }
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  
>  private:
>  
> diff --git a/gcc/tree-ssa-math-opts.cc b/gcc/tree-ssa-math-opts.cc
> index fe9f37b4cd4..a4492c96419 100644
> --- a/gcc/tree-ssa-math-opts.cc
> +++ b/gcc/tree-ssa-math-opts.cc
> @@ -4918,7 +4918,7 @@ public:
>  
>    /* The actual actions performed in the walk.  */
>  
> -  virtual void after_dom_children (basic_block);
> +  void after_dom_children (basic_block) final override;
>  
>    /* Set of results of chains of multiply and add statement
> combinations that
>       were not transformed into FMAs because of active deferring.  */
> diff --git a/gcc/tree-ssa-phiopt.cc b/gcc/tree-ssa-phiopt.cc
> index 162ca7098cd..d17c49468db 100644
> --- a/gcc/tree-ssa-phiopt.cc
> +++ b/gcc/tree-ssa-phiopt.cc
> @@ -2978,8 +2978,8 @@ public:
>      : dom_walker (direction), m_nontrapping (ps), m_seen_refs (128)
>    {}
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  
>  private:
>  
> diff --git a/gcc/tree-ssa-propagate.cc b/gcc/tree-ssa-propagate.cc
> index c10ffd91766..d2d32517a8c 100644
> --- a/gcc/tree-ssa-propagate.cc
> +++ b/gcc/tree-ssa-propagate.cc
> @@ -679,8 +679,8 @@ public:
>        BITMAP_FREE (need_eh_cleanup);
>      }
>  
> -    virtual edge before_dom_children (basic_block);
> -    virtual void after_dom_children (basic_block bb)
> +    edge before_dom_children (basic_block) final override;
> +    void after_dom_children (basic_block bb) final override
>      {
>        substitute_and_fold_engine->post_fold_bb (bb);
>      }
> diff --git a/gcc/tree-ssa-sccvn.cc b/gcc/tree-ssa-sccvn.cc
> index 18392e031b8..7407591e98c 100644
> --- a/gcc/tree-ssa-sccvn.cc
> +++ b/gcc/tree-ssa-sccvn.cc
> @@ -2493,8 +2493,8 @@ public:
>    eliminate_dom_walker (cdi_direction, bitmap);
>    ~eliminate_dom_walker ();
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  
>    virtual tree eliminate_avail (basic_block, tree op);
>    virtual void eliminate_push_avail (basic_block, tree op);
> diff --git a/gcc/tree-ssa-strlen.cc b/gcc/tree-ssa-strlen.cc
> index 2cceba6f7af..7b3e3899ea2 100644
> --- a/gcc/tree-ssa-strlen.cc
> +++ b/gcc/tree-ssa-strlen.cc
> @@ -243,8 +243,8 @@ public:
>  
>    ~strlen_pass ();
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  
>    bool check_and_optimize_stmt (bool *cleanup_eh);
>    bool check_and_optimize_call (bool *zero_write);
> diff --git a/gcc/tree-ssa-uncprop.cc b/gcc/tree-ssa-uncprop.cc
> index 510f8319d8c..900bf336e2e 100644
> --- a/gcc/tree-ssa-uncprop.cc
> +++ b/gcc/tree-ssa-uncprop.cc
> @@ -298,8 +298,8 @@ class uncprop_dom_walker : public dom_walker
>  public:
>    uncprop_dom_walker (cdi_direction direction) : dom_walker
> (direction) {}
>  
> -  virtual edge before_dom_children (basic_block);
> -  virtual void after_dom_children (basic_block);
> +  edge before_dom_children (basic_block) final override;
> +  void after_dom_children (basic_block) final override;
>  
>  private:
>  



  reply	other threads:[~2022-06-13 18:23 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-23 19:28 [PATCH 00/10] Add 'final' and 'override' where missing David Malcolm
2022-05-23 19:28 ` [PATCH 01/10] Add 'final' and 'override' to opt_pass vfunc impls David Malcolm
2022-06-13 18:22   ` PING: " David Malcolm
2022-06-24 18:08     ` PING^2: " David Malcolm
2022-06-24 18:45       ` Jeff Law
2022-06-27 21:16         ` David Malcolm
2022-05-23 19:28 ` [PATCH 02/10] Add 'final' and 'override' on dom_walker " David Malcolm
2022-06-13 18:23   ` David Malcolm [this message]
2022-06-24 18:10     ` PING^2 " David Malcolm
2022-05-23 19:28 ` [PATCH 03/10] expr.cc: use final/override on op_by_pieces_d vfuncs David Malcolm
2022-06-13 18:25   ` PING: " David Malcolm
2022-06-24 18:12     ` PING^2 : " David Malcolm
2022-05-23 19:28 ` [PATCH 04/10] tree-switch-conversion.h: use final/override for cluster vfunc impls David Malcolm
2022-06-13 18:26   ` PING " David Malcolm
2022-06-24 18:14     ` PING^2 : " David Malcolm
2022-05-23 19:28 ` [PATCH 05/10] d: add 'final' and 'override' to gcc/d/*.cc 'visit' impls David Malcolm
2022-05-24 12:56   ` Iain Buclaw
2022-05-24 13:15     ` David Malcolm
2022-05-24 15:11       ` Iain Buclaw
2022-05-23 19:28 ` [PATCH 06/10] ipa: add 'final' and 'override' to call_summary_base vfunc impls David Malcolm
2022-05-24  7:36   ` Martin Liška
2022-05-23 19:28 ` [PATCH 07/10] value-relation.h: add 'final' and 'override' to relation_oracle " David Malcolm
2022-06-13 18:28   ` PING " David Malcolm
2022-06-14  0:45     ` Aldy Hernandez
2022-06-14  1:24       ` David Malcolm
2022-06-15 13:33         ` Andrew MacLeod
2022-06-15 21:58           ` David Malcolm
2022-05-23 19:28 ` [PATCH 08/10] i386: add 'final' and 'override' to scalar_chain " David Malcolm
2022-06-13 18:30   ` PING: " David Malcolm
2022-06-24 18:19     ` PING^2 : " David Malcolm
2022-06-24 20:58       ` Uros Bizjak
2022-06-27 21:25         ` David Malcolm
2022-08-16  8:55       ` [PATCH][pushed] i386: add 'final' and 'override' to scalar_chain Martin Liška
2022-05-23 19:28 ` [PATCH 09/10] tree-vect-slp-patterns.cc: add 'final' and 'override' to vect_pattern::build impls David Malcolm
2022-05-24  6:44   ` Richard Biener
2022-05-23 19:28 ` [PATCH 10/10] Add 'final' and 'override' in various places David Malcolm
2022-06-13 18:30   ` PING " David Malcolm
2022-06-24 18:20     ` PING^2: " David Malcolm
2022-05-25  3:29 ` [PATCH 00/10] Add 'final' and 'override' where missing Eric Gallager

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=7796c1990a5320aa144401bd222a11db574f74d2.camel@redhat.com \
    --to=dmalcolm@redhat.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).