From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsOTz-0000rT-U1 for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:41:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsOTz-0000r5-A8 for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:41:55 -0400 Received: from [199.232.76.173] (port=36031 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsOTz-0000qy-6R for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:41:55 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35674 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LsOTy-0003Vd-RS for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:41:54 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LsOTy-0008A0-9L for qemu-devel@nongnu.org; Fri, 10 Apr 2009 21:41:54 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LsOTx-00089v-T8 for qemu-devel@nongnu.org; Fri, 10 Apr 2009 21:41:54 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Fri, 10 Apr 2009 21:41:53 +0000 Subject: [Qemu-devel] [7076] target-mips: optimize a few tcg_temp_free() 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 Revision: 7076 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7076 Author: aurel32 Date: 2009-04-10 21:41:53 +0000 (Fri, 10 Apr 2009) Log Message: ----------- target-mips: optimize a few tcg_temp_free() Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-mips/translate.c Modified: trunk/target-mips/translate.c =================================================================== --- trunk/target-mips/translate.c 2009-04-10 21:27:48 UTC (rev 7075) +++ trunk/target-mips/translate.c 2009-04-10 21:41:53 UTC (rev 7076) @@ -5790,13 +5790,13 @@ t0 = tcg_temp_new_i32(); tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc)); tcg_gen_brcondi_i32(cond, t0, 0, l1); + tcg_temp_free_i32(t0); if (rs == 0) { tcg_gen_movi_tl(cpu_gpr[rd], 0); } else { tcg_gen_mov_tl(cpu_gpr[rd], cpu_gpr[rs]); } gen_set_label(l1); - tcg_temp_free_i32(t0); } static inline void gen_movcf_s (int fs, int fd, int cc, int tf) @@ -5832,12 +5832,12 @@ tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc)); tcg_gen_brcondi_i32(cond, t0, 0, l1); + tcg_temp_free_i32(t0); fp0 = tcg_temp_local_new_i64(); gen_load_fpr64(ctx, fp0, fs); gen_store_fpr64(ctx, fp0, fd); tcg_temp_free_i64(fp0); gen_set_label(l1); - tcg_temp_free_i32(t0); } static inline void gen_movcf_ps (int fs, int fd, int cc, int tf) @@ -5860,11 +5860,11 @@ tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc+1)); tcg_gen_brcondi_i32(cond, t0, 0, l2); + tcg_temp_free_i32(t0); gen_load_fpr32h(t0, fs); gen_store_fpr32h(t0, fd); gen_set_label(l2); - tcg_temp_free_i32(t0); }