This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] IPA-CP release transformation summary (PR jit/91928)
- From: Martin Jambor <mjambor at suse dot cz>
- To: Andrea Corallo <Andrea dot Corallo at arm dot com>, "gcc-patches\@gcc.gnu.org" <gcc-patches at gcc dot gnu dot org>, "jit\@gcc.gnu.org" <jit at gcc dot gnu dot org>
- Cc: nd <nd at arm dot com>, Jan Hubicka <hubicka at ucw dot cz>, Jan Hubicka <jh at suse dot cz>
- Date: Mon, 30 Sep 2019 11:19:18 +0200
- Subject: Re: [PATCH] IPA-CP release transformation summary (PR jit/91928)
- References: <gkrlfu6uphd.fsf@arm.com>
Hi,
On Mon, Sep 30 2019, Andrea Corallo wrote:
> Hi all,
> I'd like to submit this patch.
> It release the ipa cp transformation summary after functions being expanded.
> This is to fix the compiler when used with libgccjit on subsequent
> compilations (every new compilation should have a clean transformation
> summary).
if this is a general problem then I think we should instead add another
hook to class ipa_opt_pass_d to free transformation summary, call it for
all IPA passes at the appropriate time and implement it for IPA-CP. That
way it will work for all IPA passes which might have a transformation
summary.
Martin
>
> Bootstrap on arm64 and X86-64.
>
> Bests
> Andrea
>
> gcc/ChangeLog
> 2019-??-?? Andrea Corallo <andrea.corallo@arm.com>
>
> * cgraphunit.c (expand_all_functions): Release ipcp_transformation_sum
> when finished.
> * ipa-prop.c (ipcp_free_transformation_sum): New function.
> * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.