]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tcg/optimize: Simplify fold_eqv constant checks
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 10 Dec 2024 14:30:50 +0000 (08:30 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 30 Jun 2025 13:42:38 +0000 (07:42 -0600)
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>
tcg/optimize.c

index a48ddd91713fc043f205d43793a5f960069e9aba..62a128bc9b794b2a676bb40940d51d02da750a5e 100644 (file)
@@ -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;
     }