aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-12-21 22:03:53 -0800
committerRichard Henderson <richard.henderson@linaro.org>2024-12-24 08:32:15 -0800
commitaa9e0501a445d1897b960f5014050497e8e70105 (patch)
tree356628d07a2a2e008824fc5786d6f7c4e5940a88
parenta3a88b17c2b2f682554a113e87e764c516e93e08 (diff)
downloadqemu-aa9e0501a445d1897b960f5014050497e8e70105.zip
qemu-aa9e0501a445d1897b960f5014050497e8e70105.tar.gz
qemu-aa9e0501a445d1897b960f5014050497e8e70105.tar.bz2
tcg/optimize: Re-enable sign-mask optimizations
All instances of s_mask have been converted to the new representation. We can now re-enable usage. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--tcg/optimize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c
index 98b4197..182be7e 100644
--- a/tcg/optimize.c
+++ b/tcg/optimize.c
@@ -1797,7 +1797,7 @@ static bool fold_exts(OptContext *ctx, TCGOp *op)
g_assert_not_reached();
}
- if (0 && !type_change && fold_affected_mask(ctx, op, s_mask & ~s_mask_old)) {
+ if (!type_change && fold_affected_mask(ctx, op, s_mask & ~s_mask_old)) {
return true;
}
@@ -2506,7 +2506,7 @@ static bool fold_sextract(OptContext *ctx, TCGOp *op)
s_mask = s_mask_old >> pos;
s_mask |= -1ull << (len - 1);
- if (0 && pos == 0 && fold_affected_mask(ctx, op, s_mask & ~s_mask_old)) {
+ if (pos == 0 && fold_affected_mask(ctx, op, s_mask & ~s_mask_old)) {
return true;
}