diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-12-08 20:50:58 -0600 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-12-24 08:32:15 -0800 |
commit | 081cf08b09edf0bea704126b607220150c9b5630 (patch) | |
tree | 91d97e6382572b81fb8c8fa5dfca104465605c47 /tcg | |
parent | 2c8a28398d65e2e4ff31061533873ed09b894543 (diff) | |
download | qemu-081cf08b09edf0bea704126b607220150c9b5630.zip qemu-081cf08b09edf0bea704126b607220150c9b5630.tar.gz qemu-081cf08b09edf0bea704126b607220150c9b5630.tar.bz2 |
tcg/optimize: Use fold_masks_s in fold_negsetcond
Avoid the use of the OptContext slots.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/optimize.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c index 74be827..7e90979 100644 --- 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) |