qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]