On 4/8/2021 3:24 AM, Martin Jambor wrote:
Hi,

When IPA-SRA removes an SSA_NAME from a LHS of a call statement
because it is not necessary, it does not release it.  This patch fixes
that.

Bootstrapped and tested on x86_64, at some point I'll LTO-bootstrap it
too.  I assume this is GCC 12 material, so OK once stage 1 opens?

Thanks,

Martin


gcc/ChangeLog:

2021-04-08  Martin Jambor  <mjam...@suse.cz>

        PR ipa/99951
        * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
        If removing a call statement LHS SSA name, release it.

OK.


Somewhere around here I've got a patch which will flag SSA_NAME leaks.  Its never been quite ready for submission, though it has proven useful in tracking down such issues.


jeff

Reply via email to