mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-29 13:01:52 -06:00
tcg/optimize: Use fold_masks_s in fold_not
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
2b7b695757
commit
608e75fc0c
1 changed files with 1 additions and 6 deletions
|
@ -2073,12 +2073,7 @@ static bool fold_not(OptContext *ctx, TCGOp *op)
|
||||||
if (fold_const1(ctx, op)) {
|
if (fold_const1(ctx, op)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
return fold_masks_s(ctx, op, arg_info(op->args[1])->s_mask);
|
||||||
ctx->s_mask = arg_info(op->args[1])->s_mask;
|
|
||||||
|
|
||||||
/* Because of fold_to_not, we want to always return true, via finish. */
|
|
||||||
finish_folding(ctx, op);
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool fold_or(OptContext *ctx, TCGOp *op)
|
static bool fold_or(OptContext *ctx, TCGOp *op)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue