[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 29/31] exec/gen-icount: Don't use tcg_temp_local_new_i32
From: |
Richard Henderson |
Subject: |
[PATCH v4 29/31] exec/gen-icount: Don't use tcg_temp_local_new_i32 |
Date: |
Sun, 26 Feb 2023 19:36:59 -1000 |
Since tcg_temp_new_i32 is now identical, use that.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/exec/gen-icount.h | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h
index 4d8b1f9ae5..733a2fb228 100644
--- a/include/exec/gen-icount.h
+++ b/include/exec/gen-icount.h
@@ -17,13 +17,7 @@ static inline void gen_io_start(void)
static inline void gen_tb_start(const TranslationBlock *tb)
{
- TCGv_i32 count;
-
- if (tb_cflags(tb) & CF_USE_ICOUNT) {
- count = tcg_temp_local_new_i32();
- } else {
- count = tcg_temp_new_i32();
- }
+ TCGv_i32 count = tcg_temp_new_i32();
tcg_gen_ld_i32(count, cpu_env,
offsetof(ArchCPU, neg.icount_decr.u32) -
--
2.34.1
- [PATCH v4 14/31] tcg: Use tcg_constant_ptr in do_dup, (continued)
- [PATCH v4 14/31] tcg: Use tcg_constant_ptr in do_dup, Richard Henderson, 2023/02/27
- [PATCH v4 16/31] accel/tcg/plugin: Tidy plugin_gen_disable_mem_helpers, Richard Henderson, 2023/02/27
- [PATCH v4 13/31] tcg: Use tcg_temp_ebb_new_* in tcg/, Richard Henderson, 2023/02/27
- [PATCH v4 17/31] tcg: Don't re-use TEMP_TB temporaries, Richard Henderson, 2023/02/27
- [PATCH v4 18/31] tcg: Change default temp lifetime to TEMP_TB, Richard Henderson, 2023/02/27
- [PATCH v4 22/31] target/hexagon: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/27
- [PATCH v4 12/31] tcg: Add tcg_temp_ebb_new_{i32,i64,ptr}, Richard Henderson, 2023/02/27
- [PATCH v4 15/31] accel/tcg/plugin: Use tcg_temp_ebb_*, Richard Henderson, 2023/02/27
- [PATCH v4 28/31] target/xtensa: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/27
- [PATCH v4 29/31] exec/gen-icount: Don't use tcg_temp_local_new_i32,
Richard Henderson <=
- [PATCH v4 24/31] target/hppa: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 27/31] target/ppc: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 19/31] target/arm: Drop copies in gen_sve_{ldr,str}, Richard Henderson, 2023/02/27
- [PATCH v4 20/31] target/arm: Don't use tcg_temp_local_new_*, Richard Henderson, 2023/02/27
- [PATCH v4 21/31] target/cris: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 23/31] target/hexagon/idef-parser: Drop gen_tmp_local, Richard Henderson, 2023/02/27
- [PATCH v4 25/31] target/i386: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27
- [PATCH v4 26/31] target/mips: Don't use tcg_temp_local_new, Richard Henderson, 2023/02/27