aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/casing.adb
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-17 12:14:54 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-08-18 00:10:13 -0700
commit3ae8794665ee7cbefee755d4b4be8d1ecb8c2a81 (patch)
treee0f38de1dadb468276995bad4c8037da5968e10d /gcc/ada/casing.adb
parenta183b255be8ec8f434c3c39f3f4e01d6bd5566f8 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
forwprop: Also dce from added statements from gimple_simplifyHEADtrunkmaster
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/ada/casing.adb')
0 files changed, 0 insertions, 0 deletions