projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
081cf08
)
tcg/optimize: Use fold_masks_z in fold_setcond2
author
Richard Henderson
<richard.henderson@linaro.org>
Mon, 9 Dec 2024 02:56:36 +0000
(20:56 -0600)
committer
Richard Henderson
<richard.henderson@linaro.org>
Tue, 24 Dec 2024 16:32:15 +0000
(08:32 -0800)
Avoid the use of the OptContext slots.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/optimize.c
patch
|
blob
|
history
diff --git
a/tcg/optimize.c
b/tcg/optimize.c
index 7e909791e168385c0812f0bb3fa461fdc8373f15..c61d0eae4e147884eb28bce56f6c82f0d534220b 100644
(file)
--- a/
tcg/optimize.c
+++ b/
tcg/optimize.c
@@
-2468,8
+2468,7
@@
static bool fold_setcond2(OptContext *ctx, TCGOp *op)
return fold_setcond(ctx, op);
}
- ctx->z_mask = 1;
- return false;
+ return fold_masks_z(ctx, op, 1);
do_setcond_const:
return tcg_opt_gen_movi(ctx, op, op->args[0], i);