From: Richard Henderson <richard.hender...@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.ben...@linaro.org> > Signed-off-by: Richard Henderson <richard.hender...@linaro.org> > --- > tcg/optimize.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++-- > - > 1 file changed, 47 insertions(+), 3 deletions(-)
Reviewed-by: Luis Pires <luis.pi...@eldorado.org.br> -- Luis Pires Instituto de Pesquisas ELDORADO Aviso Legal - Disclaimer <https://www.eldorado.org.br/disclaimer.html>