diff options
author | Martin Jambor <mjambor@suse.cz> | 2023-10-30 18:34:59 +0100 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2023-10-30 18:36:40 +0100 |
commit | 1437df40f12ade35fd1f1a3e4cbba4b4656cab0b (patch) | |
tree | 2c60a58e1b4ed95b4e8fcda3583c82dfde6cd7b0 /libstdc++-v3/src | |
parent | 68880e40533c41c89eb72247c3080703ad09270c (diff) | |
download | gcc-1437df40f12ade35fd1f1a3e4cbba4b4656cab0b.zip gcc-1437df40f12ade35fd1f1a3e4cbba4b4656cab0b.tar.gz gcc-1437df40f12ade35fd1f1a3e4cbba4b4656cab0b.tar.bz2 |
ipa-cp: Templatize filtering of m_agg_values
PR 111157 points to another place where IPA-CP collected aggregate
compile-time constants need to be filtered, in addition to the one
place that already does this in ipa-sra. In order to re-use code,
this patch turns the common bit into a template.
The functionality is still covered by testcase gcc.dg/ipa/pr108959.c.
gcc/ChangeLog:
2023-09-13 Martin Jambor <mjambor@suse.cz>
PR ipa/111157
* ipa-prop.h (ipcp_transformation): New member function template
remove_argaggs_if.
* ipa-sra.cc (zap_useless_ipcp_results): Use remove_argaggs_if to
filter aggreagate constants.
Diffstat (limited to 'libstdc++-v3/src')
0 files changed, 0 insertions, 0 deletions