diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-12-10 08:30:50 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-06-30 07:42:38 -0600 |
commit | 7630de24bace80ec031c52e478605692f79ac08b (patch) | |
tree | d3d4f03337d700c8b2334fe8afe25021769a368b | |
parent | 61617f715ec26877cdda9e027ac43945910f4fe9 (diff) | |
download | qemu-7630de24bace80ec031c52e478605692f79ac08b.zip qemu-7630de24bace80ec031c52e478605692f79ac08b.tar.gz qemu-7630de24bace80ec031c52e478605692f79ac08b.tar.bz2 |
tcg/optimize: Simplify fold_eqv constant checks
Both cases are handled by fold_xor after conversion.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | tcg/optimize.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c index a48ddd9..62a128b 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1948,9 +1948,7 @@ static bool fold_eqv(OptContext *ctx, TCGOp *op) uint64_t z_mask, o_mask, s_mask; TempOptInfo *t1, *t2; - if (fold_const2_commutative(ctx, op) || - fold_xi_to_x(ctx, op, -1) || - fold_xi_to_not(ctx, op, 0)) { + if (fold_const2_commutative(ctx, op)) { return true; } |