diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-01-09 19:55:13 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-01-09 21:23:43 -0800 |
commit | 296e8cae5cdaaf292df00453d15fbd5858d6ea0c (patch) | |
tree | 1e10e3a05a48d64a4272313c41e0b0d4d8fbfc1c /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 8acc3b4ab0c76b9c2a54182e31a02f90ebb96329 (diff) | |
download | llvm-296e8cae5cdaaf292df00453d15fbd5858d6ea0c.zip llvm-296e8cae5cdaaf292df00453d15fbd5858d6ea0c.tar.gz llvm-296e8cae5cdaaf292df00453d15fbd5858d6ea0c.tar.bz2 |
[RISCV] Isel (sra (sext_inreg X, i16), C) -> (srai (slli X, (XLen-16), (XLen-16) + C).
Similar for (sra (sext_inreg X, i8), C).
With Zbb, sext_inreg of i8 and i16 are legal for sext.b and sext.h.
This transform makes the Zbb codegen the same as without Zbb. The
shifts are more compressible. This also exposes an opportunity for
CSE with another slli in the i16 sdiv by constant codegen.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions