From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127082 invoked by alias); 30 Sep 2019 09:19:23 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 127059 invoked by uid 89); 30 Sep 2019 09:19:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-7.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:gkrlfu6, HX-Languages-Length:1039, H*i:sk:gkrlfu6 X-Spam-Status: No, score=-7.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Sep 2019 09:19:21 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2FA31B048; Mon, 30 Sep 2019 09:19:19 +0000 (UTC) From: Martin Jambor To: Andrea Corallo , "gcc-patches\@gcc.gnu.org" , "jit\@gcc.gnu.org" Cc: nd , Jan Hubicka , Jan Hubicka Subject: Re: [PATCH] IPA-CP release transformation summary (PR jit/91928) In-Reply-To: References: User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.3 (x86_64-suse-linux-gnu) Date: Tue, 01 Jan 2019 00:00:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-q3/txt/msg00017.txt.bz2 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 > > * 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.