From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLM39-0008B3-AW for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:57:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLM33-00082d-SQ for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:57:54 -0400 Received: from [199.232.76.173] (port=57354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLM33-00081y-HI for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:57:49 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:65066) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLM33-0007wc-11 for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:57:49 -0400 Received: by ewy7 with SMTP id 7so5060963ewy.34 for ; Mon, 29 Jun 2009 11:57:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <200906291934.56186.paul@codesourcery.com> References: <200906291934.56186.paul@codesourcery.com> Date: Mon, 29 Jun 2009 20:57:17 +0200 Message-ID: <5b31733c0906291157n7d8c56d4m9813cc090e42ba08@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH 2/3] Get rid of temporary variable cache. From: Filip Navara Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: qemu-devel@nongnu.org On Mon, Jun 29, 2009 at 8:34 PM, Paul Brook wrote: > On Monday 29 June 2009, Filip Navara wrote: >> The temporary variable cache actually hurts TCG more than it helps. >> Empirical results show that when running the Dhrystone benchmark with this >> patch improves the speed by about 2%. > > I find it hard to believe this patch has any significant effect on runtime, > other than random variation. My guess is it spends almost all of its time in a > few guest loops, and no time doing translation. I'd expect the generated code > should be the same before and after. You are right. That will teach me not to trust benchmarks and validate the results by other means also. > I'm not saying this patch is a bad idea (new_tmp/dead_tmp predate > tcg_temp_free and are now redundant), just that I don't believe your benchmark > results. And you were right not to believe them. Thanks for looking at the patch. Best regards, Filip Navara