[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 48/48] tcg/optimize: Propagate sign info for shifting
From: |
Alex Bennée |
Subject: |
Re: [PATCH v3 48/48] tcg/optimize: Propagate sign info for shifting |
Date: |
Tue, 26 Oct 2021 17:37:31 +0100 |
User-agent: |
mu4e 1.7.4; emacs 28.0.60 |
Richard Henderson <richard.henderson@linaro.org> writes:
> For constant shifts, we can simply shift the s_mask.
>
> For variable shifts, we know that sar does not reduce
> the s_mask, which helps for sequences like
>
> ext32s_i64 t, in
> sar_i64 t, t, v
> ext32s_i64 out, t
>
> allowing the final extend to be eliminated.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
- Re: [PATCH v3 34/48] tcg/optimize: Split out fold_to_not, (continued)
- [PATCH v3 40/48] tcg/optimize: Expand fold_addsub2_i32 to 64-bit ops, Richard Henderson, 2021/10/21
- [PATCH v3 42/48] tcg/optimize: Add more simplifications for orc, Richard Henderson, 2021/10/21
- [PATCH v3 41/48] tcg/optimize: Sink commutative operand swapping into fold functions, Richard Henderson, 2021/10/21
- [PATCH v3 43/48] tcg/optimize: Stop forcing z_mask to "garbage" for 32-bit values, Richard Henderson, 2021/10/21
- [PATCH v3 48/48] tcg/optimize: Propagate sign info for shifting, Richard Henderson, 2021/10/21
- Re: [PATCH v3 48/48] tcg/optimize: Propagate sign info for shifting,
Alex Bennée <=
- [PATCH v3 45/48] tcg/optimize: Propagate sign info for logical operations, Richard Henderson, 2021/10/21
- [PATCH v3 44/48] tcg/optimize: Optimize sign extensions, Richard Henderson, 2021/10/21
- [PATCH v3 47/48] tcg/optimize: Propagate sign info for bit counting, Richard Henderson, 2021/10/21
- [PATCH v3 46/48] tcg/optimize: Propagate sign info for setcond, Richard Henderson, 2021/10/21