Commit a4e8338de83645f993608ecb9c520b59f068f162

Authored by aurel32
1 parent 1a1f7dbc

target-mips: optimize a few tcg_temp_free()

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7076 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
target-mips/translate.c
@@ -5790,13 +5790,13 @@ static void gen_movci (DisasContext *ctx, int rd, int rs, int cc, int tf) @@ -5790,13 +5790,13 @@ static void gen_movci (DisasContext *ctx, int rd, int rs, int cc, int tf)
5790 t0 = tcg_temp_new_i32(); 5790 t0 = tcg_temp_new_i32();
5791 tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc)); 5791 tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc));
5792 tcg_gen_brcondi_i32(cond, t0, 0, l1); 5792 tcg_gen_brcondi_i32(cond, t0, 0, l1);
  5793 + tcg_temp_free_i32(t0);
5793 if (rs == 0) { 5794 if (rs == 0) {
5794 tcg_gen_movi_tl(cpu_gpr[rd], 0); 5795 tcg_gen_movi_tl(cpu_gpr[rd], 0);
5795 } else { 5796 } else {
5796 tcg_gen_mov_tl(cpu_gpr[rd], cpu_gpr[rs]); 5797 tcg_gen_mov_tl(cpu_gpr[rd], cpu_gpr[rs]);
5797 } 5798 }
5798 gen_set_label(l1); 5799 gen_set_label(l1);
5799 - tcg_temp_free_i32(t0);  
5800 } 5800 }
5801 5801
5802 static inline void gen_movcf_s (int fs, int fd, int cc, int tf) 5802 static inline void gen_movcf_s (int fs, int fd, int cc, int tf)
@@ -5832,12 +5832,12 @@ static inline void gen_movcf_d (DisasContext *ctx, int fs, int fd, int cc, int t @@ -5832,12 +5832,12 @@ static inline void gen_movcf_d (DisasContext *ctx, int fs, int fd, int cc, int t
5832 5832
5833 tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc)); 5833 tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc));
5834 tcg_gen_brcondi_i32(cond, t0, 0, l1); 5834 tcg_gen_brcondi_i32(cond, t0, 0, l1);
  5835 + tcg_temp_free_i32(t0);
5835 fp0 = tcg_temp_local_new_i64(); 5836 fp0 = tcg_temp_local_new_i64();
5836 gen_load_fpr64(ctx, fp0, fs); 5837 gen_load_fpr64(ctx, fp0, fs);
5837 gen_store_fpr64(ctx, fp0, fd); 5838 gen_store_fpr64(ctx, fp0, fd);
5838 tcg_temp_free_i64(fp0); 5839 tcg_temp_free_i64(fp0);
5839 gen_set_label(l1); 5840 gen_set_label(l1);
5840 - tcg_temp_free_i32(t0);  
5841 } 5841 }
5842 5842
5843 static inline void gen_movcf_ps (int fs, int fd, int cc, int tf) 5843 static inline void gen_movcf_ps (int fs, int fd, int cc, int tf)
@@ -5860,11 +5860,11 @@ static inline void gen_movcf_ps (int fs, int fd, int cc, int tf) @@ -5860,11 +5860,11 @@ static inline void gen_movcf_ps (int fs, int fd, int cc, int tf)
5860 5860
5861 tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc+1)); 5861 tcg_gen_andi_i32(t0, fpu_fcr31, get_fp_bit(cc+1));
5862 tcg_gen_brcondi_i32(cond, t0, 0, l2); 5862 tcg_gen_brcondi_i32(cond, t0, 0, l2);
  5863 + tcg_temp_free_i32(t0);
5863 gen_load_fpr32h(t0, fs); 5864 gen_load_fpr32h(t0, fs);
5864 gen_store_fpr32h(t0, fd); 5865 gen_store_fpr32h(t0, fd);
5865 gen_set_label(l2); 5866 gen_set_label(l2);
5866 5867
5867 - tcg_temp_free_i32(t0);  
5868 } 5868 }
5869 5869
5870 5870