Received: from eggs.gnu.org ([2001:4830:134:3::10]:59477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEcKI-0003gC-Sj for qemu-devel@nongnu.org; Mon, 13 Jul 2015 07:55:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEcKF-0002Bt-KI for qemu-devel@nongnu.org; Mon, 13 Jul 2015 07:55:14 -0400 Received: from cantor2.suse.de ([195.135.220.15]:55541 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEcKF-00028u-Eb for qemu-devel@nongnu.org; Mon, 13 Jul 2015 07:55:11 -0400 Date: Mon, 13 Jul 2015 13:55:09 +0200 From: Martin Jambor Message-ID: <20150713115509.GG1819@virgil.suse.cz> References: <1436737195-21165-1-git-send-email-bonzini@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1436737195-21165-1-git-send-email-bonzini@gnu.org> Subject: Re: [Qemu-devel] [PATCH] PR/66760, ipa-inline-analysis.c compile-time hog List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: gcc-patches@gcc.gnu.org, qemu-devel@nongnu.org, jamborm@gcc.gnu.org, hubicka@ucw.cz Hi, On Sun, Jul 12, 2015 at 11:39:55PM +0200, Paolo Bonzini wrote: > From: bonzini@gnu.org > > In this PR, a lot of time is spent doing the same ipa_load_from_parm_agg > query over and over. Luckily a memoization scheme is already there, it's > just not used by ipa-inline-analysis.c. The patch moves the cache struct > (struct func_body_info) to ipa-prop.h and modify ipa-inline-analysis.c. > On some testcases from PR26854 the "alias stmt walking" timevar goes > off the profile while it used to be 30-70%. > > Bootstrapped (regtest in progress) on x86_64-pc-linux-gnu. > > Please commit the patch for me if approved, as I don't have anymore > the key I used to use for gcc.gnu.org. One of these days I'll send > my new SSH public key to the overseers. I can't approve it, but FWIW, I'm generally fine with the patch. Although the original idea was to share one func_body_info in between ipa-cp and ipa-inline analyses, this is certainly better than what we have now and perhaps even good enough generally. The only semi-issue I have is the name of func_body_info. If it is going to be exposed in a header file, perhaps it should get an ipa_ prefix. I also think that its initialization should be put into a common function, but that is somethig I can do as a followup, if need be. In any event, thanks for working on this, Martin