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:
parent
a96219204f
commit
08abe2908f
@ -1851,11 +1851,11 @@ static bool fold_extu(OptContext *ctx, TCGOp *op)
|
|||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx->z_mask = z_mask;
|
|
||||||
if (!type_change && fold_affected_mask(ctx, op, z_mask_old ^ z_mask)) {
|
if (!type_change && fold_affected_mask(ctx, op, z_mask_old ^ z_mask)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return fold_masks(ctx, op);
|
|
||||||
|
return fold_masks_z(ctx, op, z_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool fold_mb(OptContext *ctx, TCGOp *op)
|
static bool fold_mb(OptContext *ctx, TCGOp *op)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user