From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLLh4-0001PZ-FB for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:35:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLLgz-0001IH-Mc for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:35:06 -0400 Received: from [199.232.76.173] (port=39068 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLLgz-0001I3-IM for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:35:01 -0400 Received: from mx20.gnu.org ([199.232.41.8]:44077) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLLgz-0004Ir-5i for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:35:01 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLLgy-0004fU-0P for qemu-devel@nongnu.org; Mon, 29 Jun 2009 14:35:00 -0400 Subject: Re: [Qemu-devel] [PATCH 2/3] Get rid of temporary variable cache. Content-Disposition: inline From: Paul Brook Date: Mon, 29 Jun 2009 19:34:55 +0100 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200906291934.56186.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Filip Navara 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. 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. Paul