aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/security/ber
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2025-04-07 17:57:07 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2025-04-18 09:13:48 -0700
commit2d693c1ffd849e0c1df9cc6610a69a63ffcb2956 (patch)
tree05c9f976c91825e77ccf01f383bd1d3dcfee258c /libjava/gnu/java/security/ber
parent800b3977031dd4f14d09ced975276e09457dfff7 (diff)
downloadgcc-2d693c1ffd849e0c1df9cc6610a69a63ffcb2956.zip
gcc-2d693c1ffd849e0c1df9cc6610a69a63ffcb2956.tar.gz
gcc-2d693c1ffd849e0c1df9cc6610a69a63ffcb2956.tar.bz2
DSE: Trim stores of 0 like triming stores of {} [PR87901]
This is the second part of the PR which comes from transformation of memset into either stores of 0 (via an integral type) or stores of {}. We already handle stores of `{}`, this just extends that to handle of the constant 0 and treat it similarly. PR tree-optimization/87901 gcc/ChangeLog: * tree-ssa-dse.cc (maybe_trim_constructor_store): Add was_integer_cst argument. Check for was_integer_cst instead of `{}` when was_integer_cst is true. (maybe_trim_partially_dead_store): Handle INTEGER_CST stores of 0 as stores of `{}`. Udpate call to maybe_trim_constructor_store for CONSTRUCTOR. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/ssa-dse-53.c: New test. * gcc.dg/tree-ssa/ssa-dse-54.c: New test. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'libjava/gnu/java/security/ber')
0 files changed, 0 insertions, 0 deletions