[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/6] target/m68k: Reduce the scope of the 'zero'
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 6/6] target/m68k: Reduce the scope of the 'zero' tcg_temp |
Date: |
Mon, 11 Mar 2019 07:58:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 3/9/19 4:34 PM, Philippe Mathieu-Daudé wrote:
> if (left) {
> + TCGv zero = tcg_const_i32(0);
> tcg_gen_mov_i32(shl, shift); /* shl = shift */
> tcg_gen_movi_i32(shr, size + 1);
> tcg_gen_sub_i32(shr, shr, shift); /* shr = size + 1 - shift */
> tcg_gen_subi_i32(shx, shift, 1); /* shx = shift - 1 */
> /* shx = shx < 0 ? size : shx; */
> - zero = tcg_const_i32(0);
> tcg_gen_movcond_i32(TCG_COND_LT, shx, shx, zero, sz, shx);
> - tcg_temp_free(zero);
> + tcg_temp_free_i32(zero);
But you're extending its lifetime.
r~
- [Qemu-devel] [PATCH 0/6] target/m68k: Optimize few instructions using deposit/extraxt_i32(), Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 1/6] target/m68k: Reduce the l1 TCGLabel scope, Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 2/6] target/m68k: Optimize the partset instruction using deposit_i32(), Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 3/6] target/m68k: Fix a tcg_temp leak, Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 4/6] target/m68k: Optimize get_sr() using deposit_i32(), Philippe Mathieu-Daudé, 2019/03/09
- [Qemu-devel] [PATCH 6/6] target/m68k: Reduce the scope of the 'zero' tcg_temp, Philippe Mathieu-Daudé, 2019/03/09
- Re: [Qemu-devel] [PATCH 6/6] target/m68k: Reduce the scope of the 'zero' tcg_temp,
Richard Henderson <=
- [Qemu-devel] [PATCH 5/6] target/m68k: Optimize rotate_x() using extract_i32(), Philippe Mathieu-Daudé, 2019/03/09