[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 49/51] tcg/optimize: Remove z_mask, s_mask from OptContext
From: |
Richard Henderson |
Subject: |
[PATCH v2 49/51] tcg/optimize: Remove z_mask, s_mask from OptContext |
Date: |
Thu, 19 Dec 2024 20:11:01 -0800 |
All mask setting is now done with parameters via fold_masks_*.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/optimize.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 94be844ee5..2b64b8a0ec 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -64,8 +64,6 @@ typedef struct OptContext {
QSIMPLEQ_HEAD(, MemCopyInfo) mem_free;
/* In flight values from optimization. */
- uint64_t z_mask; /* mask bit is 0 iff value bit is 0 */
- uint64_t s_mask; /* mask of clrsb(value) bits */
TCGType type;
} OptContext;
@@ -986,14 +984,6 @@ static bool finish_folding(OptContext *ctx, TCGOp *op)
for (i = 0; i < nb_oargs; i++) {
TCGTemp *ts = arg_temp(op->args[i]);
reset_ts(ctx, ts);
- /*
- * Save the corresponding known-zero/sign bits mask for the
- * first output argument (only one supported so far).
- */
- if (i == 0) {
- ts_info(ts)->z_mask = ctx->z_mask;
- ts_info(ts)->s_mask = ctx->s_mask;
- }
}
return true;
}
@@ -2907,10 +2897,6 @@ void tcg_optimize(TCGContext *s)
ctx.type = TCG_TYPE_I32;
}
- /* Assume all bits affected, no bits known zero, no sign reps. */
- ctx.z_mask = -1;
- ctx.s_mask = 0;
-
/*
* Process each opcode.
* Sorted alphabetically by opcode as much as possible.
--
2.43.0
- [PATCH v2 34/51] tcg/optimize: Use fold_masks_s in fold_negsetcond, (continued)
- [PATCH v2 34/51] tcg/optimize: Use fold_masks_s in fold_negsetcond, Richard Henderson, 2024/12/19
- [PATCH v2 36/51] tcg/optimize: Use fold_masks_z in fold_setcond2, Richard Henderson, 2024/12/19
- [PATCH v2 25/51] tcg/optimize: Use fold_masks_s in fold_nor, Richard Henderson, 2024/12/19
- [PATCH v2 28/51] tcg/optimize: Use fold_masks_zs in fold_orc, Richard Henderson, 2024/12/19
- [PATCH v2 45/51] tcg/optimize: Use finish_folding in fold_tcg_ld_memcopy, Richard Henderson, 2024/12/19
- [PATCH v2 47/51] tcg/optimize: Use finish_folding in fold_bitsel_vec, Richard Henderson, 2024/12/19
- [PATCH v2 48/51] tcg/optimize: Use finish_folding as default in tcg_optimize, Richard Henderson, 2024/12/19
- [PATCH v2 42/51] tcg/optimize: Simplify sign bit test in fold_shift, Richard Henderson, 2024/12/19
- [PATCH v2 44/51] tcg/optimize: Use fold_masks_zs in fold_tcg_ld, Richard Henderson, 2024/12/19
- [PATCH v2 49/51] tcg/optimize: Remove z_mask, s_mask from OptContext,
Richard Henderson <=
- [PATCH v2 50/51] tcg/optimize: Move fold_bitsel_vec into alphabetic sort, Richard Henderson, 2024/12/19
- [PATCH v2 43/51] tcg/optimize: Use finish_folding in fold_sub, fold_sub_vec, Richard Henderson, 2024/12/19
- [PATCH v2 46/51] tcg/optimize: Use fold_masks_zs in fold_xor, Richard Henderson, 2024/12/19
- [PATCH v2 51/51] tcg/optimize: Move fold_cmp_vec, fold_cmpsel_vec into alphabetic sort, Richard Henderson, 2024/12/19
- [PATCH v2 40/51] tcg/optimize: Canonicalize s_mask in fold_exts, fold_sextract, Richard Henderson, 2024/12/19
- [PATCH v2 41/51] tcg/optimize: Use fold_masks_zs, fold_masks_s in fold_shift, Richard Henderson, 2024/12/19