From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kq2kF-0001cK-Qf for qemu-devel@nongnu.org; Wed, 15 Oct 2008 05:32:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kq2kD-0001a0-SZ for qemu-devel@nongnu.org; Wed, 15 Oct 2008 05:32:43 -0400 Received: from [199.232.76.173] (port=40665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq2kD-0001Zo-IP for qemu-devel@nongnu.org; Wed, 15 Oct 2008 05:32:41 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:50726) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kq2kD-0006ss-0i for qemu-devel@nongnu.org; Wed, 15 Oct 2008 05:32:41 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH][ppc] convert SPE logical instructions to TCG Date: Wed, 15 Oct 2008 10:32:27 +0100 References: <20081014171934.GL18389@codesourcery.com> <20081014191617.GA24989@hall.aurel32.net> <20081015020915.GM18389@codesourcery.com> In-Reply-To: <20081015020915.GM18389@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810151032.28296.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Nathan Froyd On Wednesday 15 October 2008 03:09:16 Nathan Froyd wrote: > + =A0 =A0TCGv t0 =3D tcg_temp_local_new(TCG_TYPE_I64); =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0+ =A0 =A0TCGv t1 =3D tcg_temp_local_new(TCG_TYPE_I64); =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 These should be tcg_temp_new. Local variables (tcg_temp_local_new) introduce a lot of additional overhead= ,=20 should only be used when absolutely necessary. A local variable is required= =20 if the value is required to live over multiple basic blocks. i.e. accross a= =20 branch op or a dyngen op. In the latter case it's probably best to eliminat= e=20 the dyngen op. Paul