[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 72/84] target/hexagon/idef-parser: Use gen_tmp for gen_rvalue_pred
From: |
Richard Henderson |
Subject: |
[PULL 72/84] target/hexagon/idef-parser: Use gen_tmp for gen_rvalue_pred |
Date: |
Sun, 5 Mar 2023 16:39:42 -0800 |
The allocation is immediately followed by either tcg_gen_mov_i32
or gen_read_preg (which contains tcg_gen_mov_i32), so the zero
initialization is immediately discarded.
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hexagon/idef-parser/parser-helpers.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/hexagon/idef-parser/parser-helpers.c
b/target/hexagon/idef-parser/parser-helpers.c
index 760e499149..c0e6f2190c 100644
--- a/target/hexagon/idef-parser/parser-helpers.c
+++ b/target/hexagon/idef-parser/parser-helpers.c
@@ -1889,7 +1889,7 @@ HexValue gen_rvalue_pred(Context *c, YYLTYPE *locp,
HexValue *pred)
bool is_dotnew = pred->is_dotnew;
char predicate_id[2] = { pred->pred.id, '\0' };
char *pred_str = (char *) &predicate_id;
- *pred = gen_tmp_value(c, locp, "0", 32, UNSIGNED);
+ *pred = gen_tmp(c, locp, 32, UNSIGNED);
if (is_dotnew) {
OUT(c, locp, "tcg_gen_mov_i32(", pred,
", hex_new_pred_value[");
--
2.34.1
- [PULL 51/84] target/riscv: Drop temp_new, (continued)
- [PULL 51/84] target/riscv: Drop temp_new, Richard Henderson, 2023/03/05
- [PULL 50/84] target/riscv: Drop ftemp_new, Richard Henderson, 2023/03/05
- [PULL 49/84] target/ppc: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 54/84] target/sh4: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 45/84] target/m68k: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 40/84] target/hppa: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 61/84] target/xtensa: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 62/84] target/i386: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 69/84] target/hexagon: Use tcg_constant_* for gen_constant_from_imm, Richard Henderson, 2023/03/05
- [PULL 68/84] docs/devel/tcg-ops: Drop recommendation to free temps, Richard Henderson, 2023/03/05
- [PULL 72/84] target/hexagon/idef-parser: Use gen_tmp for gen_rvalue_pred,
Richard Henderson <=
- [PULL 46/84] target/microblaze: Drop tcg_temp_free, Richard Henderson, 2023/03/05
- [PULL 64/84] target/mips: Fix trans_mult_acc return, Richard Henderson, 2023/03/05
- [PULL 67/84] tracing: remove transform.py, Richard Henderson, 2023/03/05
- [PULL 71/84] target/hexagon/idef-parser: Use gen_tmp for gen_pred_assign, Richard Henderson, 2023/03/05
- [PULL 76/84] target/riscv: Avoid tcg_const_*, Richard Henderson, 2023/03/05
- [PULL 73/84] target/hexagon/idef-parser: Use gen_constant for gen_extend_tcg_width_op, Richard Henderson, 2023/03/05
- [PULL 66/84] include/exec/gen-icount: Drop tcg_temp_free in gen_tb_start, Richard Henderson, 2023/03/05
- [PULL 74/84] target/i386: Simplify POPF, Richard Henderson, 2023/03/05
- [PULL 78/84] target/sparc: Avoid tcg_const_{tl,i32}, Richard Henderson, 2023/03/05
- [PULL 77/84] target/s390x: Split out gen_ri2, Richard Henderson, 2023/03/05