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>
This commit is contained in:
parent
a3a88b17c2
commit
aa9e0501a4
@ -1797,7 +1797,7 @@ static bool fold_exts(OptContext *ctx, TCGOp *op)
|
|||||||
g_assert_not_reached();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2506,7 +2506,7 @@ static bool fold_sextract(OptContext *ctx, TCGOp *op)
|
|||||||
s_mask = s_mask_old >> pos;
|
s_mask = s_mask_old >> pos;
|
||||||
s_mask |= -1ull << (len - 1);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user