diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-10-20 09:06:18 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-10-20 11:09:04 +0200 |
commit | b47b5438b9b95cea90f8d925518e893259255a50 (patch) | |
tree | c7ff1e23611e1553ab7a7a81e9d47a4de11b3e2c /gcc/tree-ssa-threadbackward.c | |
parent | 82cd78f2c31db1664ca154d7fcd24e9eaee1427f (diff) | |
download | gcc-b47b5438b9b95cea90f8d925518e893259255a50.zip gcc-b47b5438b9b95cea90f8d925518e893259255a50.tar.gz gcc-b47b5438b9b95cea90f8d925518e893259255a50.tar.bz2 |
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.
Diffstat (limited to 'gcc/tree-ssa-threadbackward.c')
-rw-r--r-- | gcc/tree-ssa-threadbackward.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/tree-ssa-threadbackward.c b/gcc/tree-ssa-threadbackward.c index e378adb..96422a1 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; } |