diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-08-26 13:24:59 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-10-28 20:55:07 -0700 |
commit | 93a967fbb571ae34857c769dbf0bcc08f2286328 (patch) | |
tree | 6d48adccdac938a187965e46ff3a029432a8ec84 /softmmu/physmem.c | |
parent | 2b9d0c59edec097c72ce9b917d3c08dc5d59cdda (diff) |
tcg/optimize: Propagate sign info for shifting
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>
Reviewed-by: Luis Pires <luis.pires@eldorado.org.br>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'softmmu/physmem.c')
0 files changed, 0 insertions, 0 deletions