tcg/optimize: Use fold_masks_z in fold_extu

Avoid the use of the OptContext slots.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2024-12-08 20:11:44 -06:00
parent a96219204f
commit 08abe2908f

View File

@ -1851,11 +1851,11 @@ static bool fold_extu(OptContext *ctx, TCGOp *op)
g_assert_not_reached();
}
ctx->z_mask = z_mask;
if (!type_change && fold_affected_mask(ctx, op, z_mask_old ^ z_mask)) {
return true;
}
return fold_masks(ctx, op);
return fold_masks_z(ctx, op, z_mask);
}
static bool fold_mb(OptContext *ctx, TCGOp *op)