public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4533] Remove unused back_threader_registry::m_threaded_paths.
@ 2021-10-20  9:09 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-10-20  9:09 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b47b5438b9b95cea90f8d925518e893259255a50

commit r12-4533-gb47b5438b9b95cea90f8d925518e893259255a50
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Wed Oct 20 09:06:18 2021 +0200

    Remove unused back_threader_registry::m_threaded_paths.
    
    Tested on x86-64 Linux.
    
    gcc/ChangeLog:
    
            * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
            Remove.
            (back_threader_registry::register_path): Remove m_threaded_paths.

Diff:
---
 gcc/tree-ssa-threadbackward.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gcc/tree-ssa-threadbackward.c b/gcc/tree-ssa-threadbackward.c
index e378adbbf53..96422a1390e 100644
--- a/gcc/tree-ssa-threadbackward.c
+++ b/gcc/tree-ssa-threadbackward.c
@@ -52,12 +52,10 @@ along with GCC; see the file COPYING3.  If not see
 class back_threader_registry
 {
 public:
-  back_threader_registry ();
   bool register_path (const vec<basic_block> &, edge taken);
   bool thread_through_all_blocks (bool may_peel_loop_headers);
 private:
   back_jt_path_registry m_lowlevel_registry;
-  int m_threaded_paths;
 };
 
 // Class to abstract the profitability code for the backwards threader.
@@ -574,11 +572,6 @@ back_threader::debug ()
   dump (stderr);
 }
 
-back_threader_registry::back_threader_registry ()
-{
-  m_threaded_paths = 0;
-}
-
 bool
 back_threader_registry::thread_through_all_blocks (bool may_peel_loop_headers)
 {
@@ -928,9 +921,7 @@ back_threader_registry::register_path (const vec<basic_block> &m_path,
 
   m_lowlevel_registry.push_edge (jump_thread_path,
 				 taken_edge, EDGE_NO_COPY_SRC_BLOCK);
-
-  if (m_lowlevel_registry.register_jump_thread (jump_thread_path))
-    ++m_threaded_paths;
+  m_lowlevel_registry.register_jump_thread (jump_thread_path);
   return true;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-20  9:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20  9:09 [gcc r12-4533] Remove unused back_threader_registry::m_threaded_paths Aldy Hernandez

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).