]> git.ipfire.org Git - thirdparty/gcc.git/commit
forwprop: Add stats for memcpy->memset
authorAndrew Pinski <quic_apinski@quicinc.com>
Mon, 26 May 2025 21:40:12 +0000 (14:40 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Thu, 29 May 2025 21:11:54 +0000 (14:11 -0700)
commita4a4cf89f90bb1f618e97ae7deb59542a7421107
treebdab74639a3f97e23c7edb3b62a32eb39cb0a03c
parenta06058afa6303adcc2cf9eb8f5d028ac53e13e86
forwprop: Add stats for memcpy->memset

As part of the review of copy prop for aggregates, it was
mentioned there should be some statistics added, and I noticed
the memcpy->memset was missing the statistics too. So this adds
that.

gcc/ChangeLog:

* tree-ssa-forwprop.cc (optimize_memcpy_to_memset): Adds
statistics when the statement changed.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/tree-ssa-forwprop.cc