diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-08-17 12:14:54 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-08-18 00:10:13 -0700 |
commit | 3ae8794665ee7cbefee755d4b4be8d1ecb8c2a81 (patch) | |
tree | e0f38de1dadb468276995bad4c8037da5968e10d /gcc/cp/ChangeLog-1998 | |
parent | a183b255be8ec8f434c3c39f3f4e01d6bd5566f8 (diff) | |
download | gcc-3ae8794665ee7cbefee755d4b4be8d1ecb8c2a81.zip gcc-3ae8794665ee7cbefee755d4b4be8d1ecb8c2a81.tar.gz gcc-3ae8794665ee7cbefee755d4b4be8d1ecb8c2a81.tar.bz2 |
forwprop: Also dce from added statements from gimple_simplify
This extends r14-3982-g9ea74d235c7e78 to also include the newly added statements
since some of them might be dead too (due to the way match and simplify works).
This was noticed while working on adding a new match and simplify pattern where a
new statement that got added was not being used.
Bootstrapped and tested on x86_64-linux-gnu with no regressions.
gcc/ChangeLog:
* gimple-fold.cc (mark_lhs_in_seq_for_dce): New function.
(replace_stmt_with_simplification): Call mark_lhs_in_seq_for_dce
right before inserting the sequence.
(fold_stmt_1): Add dce_worklist argument, update call to
replace_stmt_with_simplification.
(fold_stmt): Add dce_worklist argument, update call to fold_stmt_1.
(fold_stmt_inplace): Update call to fold_stmt_1.
* gimple-fold.h (fold_stmt): Add bitmap argument.
* tree-ssa-forwprop.cc (pass_forwprop::execute): Update call to fold_stmt.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/cp/ChangeLog-1998')
0 files changed, 0 insertions, 0 deletions