]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-threadbackward.cc
Move statics to threader pass class.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 29 Oct 2021 15:28:41 +0000 (17:28 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Mon, 1 Nov 2021 13:24:10 +0000 (14:24 +0100)
commit4e0f56d7af9dd58f74d67f9cb303936ef595cdf6
tree3843dab1b4006ae7a2950039a9e40487fa494239
parent0187c03be31a58ba561d535687dc00c94f0ff1aa
Move statics to threader pass class.

This patch moves all the static functions into the pass class, and
cleans up things a little.  The goal is to shuffle things around such
that we can add debug counters that depend on different threading
passes, but it's a clean-up on its own right.

Tested on x86-64 Linux.

gcc/ChangeLog:

* tree-ssa-threadbackward.c (BT_NONE): New.
(BT_SPEED): New.
(BT_RESOLVE): New.
(back_threader::back_threader): Add flags.
Move loop initialization here.
(back_threader::~back_threader): New.
(back_threader::find_taken_edge_switch): Change solver and ranger
to pointers.
(back_threader::find_taken_edge_cond): Same.
(back_threader::find_paths_to_names): Same.
(back_threader::find_paths): Same.
(back_threader::dump): Same.
(try_thread_blocks): Merge into thread_blocks.
(back_threader::thread_blocks): New.
(do_early_thread_jumps): Merge into thread_blocks.
(do_thread_jumps): Merge into thread_blocks.
(back_threader::thread_through_all_blocks): Remove.
gcc/tree-ssa-threadbackward.c