[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 44/46] tcg/optimize: Remove [zsa]_mask from OptContext
From: |
Richard Henderson |
Subject: |
[PATCH 44/46] tcg/optimize: Remove [zsa]_mask from OptContext |
Date: |
Tue, 10 Dec 2024 09:23:59 -0600 |
All mask setting is now done with parameters via fold_masks_*.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/optimize.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 94e942e1cf..eb6e93809e 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -64,9 +64,6 @@ typedef struct OptContext {
QSIMPLEQ_HEAD(, MemCopyInfo) mem_free;
/* In flight values from optimization. */
- uint64_t a_mask; /* mask bit is 0 iff value identical to first input */
- 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;
@@ -987,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;
}
@@ -2867,11 +2856,6 @@ void tcg_optimize(TCGContext *s)
ctx.type = TCG_TYPE_I32;
}
- /* Assume all bits affected, no bits known zero, no sign reps. */
- ctx.a_mask = -1;
- ctx.z_mask = -1;
- ctx.s_mask = 0;
-
/*
* Process each opcode.
* Sorted alphabetically by opcode as much as possible.
--
2.43.0
- Re: [PATCH 41/46] tcg/optimize: Use fold_masks_zs in fold_xor, (continued)
- [PATCH 42/46] tcg/optimize: Use finish_folding in fold_bitsel_vec, Richard Henderson, 2024/12/10
- [PATCH 40/46] tcg/optimize: Use finish_folding in fold_tcg_ld_memcopy, Richard Henderson, 2024/12/10
- [PATCH 43/46] tcg/optimize: Use finish_folding as default in tcg_optimize, Richard Henderson, 2024/12/10
- [PATCH 45/46] tcg/optimize: Move fold_bitsel_vec into alphabetic sort, Richard Henderson, 2024/12/10
- [PATCH 44/46] tcg/optimize: Remove [zsa]_mask from OptContext,
Richard Henderson <=
- [PATCH 46/46] tcg/optimize: Move fold_cmp_vec, fold_cmpsel_vec into alphabetic sort, Richard Henderson, 2024/12/10
- Re: [PATCH 00/46] tcg: Remove in-flight mask data from OptContext, Richard Henderson, 2024/12/16
- Re: [PATCH 00/46] tcg: Remove in-flight mask data from OptContext, Pierrick Bouvier, 2024/12/17