diff options
author | Filip Kastl <fkastl@suse.cz> | 2024-08-06 15:19:11 +0200 |
---|---|---|
committer | Filip Kastl <fkastl@suse.cz> | 2024-08-06 15:19:11 +0200 |
commit | af1010268f81fc891a6bbf8ed9d5b8a3b5ce44cb (patch) | |
tree | 5925a56f1b16c22cea04991465395e2840f2eec4 /libcpp | |
parent | 31efd46ad8a16aa671f4502816b6b1f9946027ae (diff) | |
download | gcc-af1010268f81fc891a6bbf8ed9d5b8a3b5ce44cb.zip gcc-af1010268f81fc891a6bbf8ed9d5b8a3b5ce44cb.tar.gz gcc-af1010268f81fc891a6bbf8ed9d5b8a3b5ce44cb.tar.bz2 |
gimple ssa: Put SCCOPY logic into a class
Currently the main logic of the sccopy pass is implemented as static
functions. This patch instead puts the code into a class. This also
gets rid of a global variable (dead_stmts).
gcc/ChangeLog:
* gimple-ssa-sccopy.cc (class scc_copy_prop): New class.
(replace_scc_by_value): Put into...
(scc_copy_prop::replace_scc_by_value): ...scc_copy_prop.
(sccopy_visit_op): Put into...
(scc_copy_prop::visit_op): ...scc_copy_prop.
(sccopy_propagate): Put into...
(scc_copy_prop::propagate): ...scc_copy_prop.
(init_sccopy): Replace by...
(scc_copy_prop::scc_copy_prop): ...the construtor.
(finalize_sccopy): Replace by...
(scc_copy_prop::~scc_copy_prop): ...the destructor.
(pass_sccopy::execute): Use scc_copy_prop.
Signed-off-by: Filip Kastl <fkastl@suse.cz>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions