projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c8a283
)
tcg/optimize: Use fold_masks_s in fold_negsetcond
author
Richard Henderson
<richard.henderson@linaro.org>
Mon, 9 Dec 2024 02:50:58 +0000
(20:50 -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 74be827f515ed5d62b21afaf5001f87d665704d9..7e909791e168385c0812f0bb3fa461fdc8373f15 100644
(file)
--- a/
tcg/optimize.c
+++ b/
tcg/optimize.c
@@
-2387,8
+2387,7
@@
static bool fold_negsetcond(OptContext *ctx, TCGOp *op)
}
/* Value is {0,-1} so all bits are repetitions of the sign. */
- ctx->s_mask = -1;
- return false;
+ return fold_masks_s(ctx, op, -1);
}
static bool fold_setcond2(OptContext *ctx, TCGOp *op)