qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH v4 51/51] tcg/optimize: Propagate sign info for shifting


From: Luis Fernando Fujita Pires
Subject: RE: [PATCH v4 51/51] tcg/optimize: Propagate sign info for shifting
Date: Wed, 27 Oct 2021 20:44:14 +0000

From: Richard Henderson <richard.henderson@linaro.org>
> 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.
> 
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  tcg/optimize.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++--
> -
>  1 file changed, 47 insertions(+), 3 deletions(-)

Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>

--
Luis Pires
Instituto de Pesquisas ELDORADO
Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>

reply via email to

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