hash-set.h (hash_set::empty): New.
authorAldy Hernandez <aldyh@redhat.com>
Sat, 18 Nov 2017 07:35:18 +0000 (07:35 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Sat, 18 Nov 2017 07:35:18 +0000 (07:35 +0000)
commitcde30fe04594843d87226653c19dbc5e05fad7b4
treeb5e137d10e39d84e2c7bf7e20768a34595c91cd5
parentf32e0e16b20cfbbbca6c8c5c799eb22aa870700b
hash-set.h (hash_set::empty): New.

* hash-set.h (hash_set::empty): New.
* tree-ssa-threadbackward.h: Delete.
* tree-ssa-threadbackward.c (class thread_jumps): New.
Move max_threaded_paths into class.
(fsm_find_thread_path): Remove arguments that are now in class.
(profitable_jump_thread_path): Rename to...
(thread_jumps::profitable_jump_thread_path): ...this.
(convert_and_register_jump_thread_path): Rename to...
(thread_jumps::convert_and_register_current_path): ...this.
(check_subpath_and_update_thread_path): Rename to...
(thread_jumps::check_subpath_and_update_thread_path): ...this.
(register_jump_thread_path_if_profitable): Rename to...
(thread_jumps::register_jump_thread_path_if_profitable): ...this.
(handle_phi): Rename to...
(thread_jumps::handle_phi): ...this.
(handle_assignment): Rename to...
(thread_jumps::handle_assignment): ...this.
(fsm_find_control_statement_thread_paths): Rename to...
(thread_jumps::fsm_find_control_statement_thread_paths): ...this.
(find_jump_threads_backwards): Rename to...
(thread_jumps::find_jump_threads_backwards): ...this.
Initialize path local data.
(pass_thread_jumps::execute): Call find_jump_threads_backwards
from within thread_jumps class.
(pass_early_thread_jumps::execute): Same.

From-SVN: r254913
gcc/ChangeLog
gcc/hash-set.h
gcc/tree-ssa-threadbackward.c
gcc/tree-ssa-threadbackward.h [deleted file]