> 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  <mjam...@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.
OK,
Honza

Reply via email to