diff options
author | Craig Topper <craig.topper@sifive.com> | 2021-09-16 10:37:55 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2021-09-16 11:03:35 -0700 |
commit | 73e5b9ea90ba857dd7f0f6b79dc39dfc90ad66ea (patch) | |
tree | c5376f70f5e87deb09f4c5b81349622175c78620 /llvm/lib/Support/BinaryStreamWriter.cpp | |
parent | b4fa71eed34d967195514fe9b0a5211fca2bc5bc (diff) | |
download | llvm-73e5b9ea90ba857dd7f0f6b79dc39dfc90ad66ea.zip llvm-73e5b9ea90ba857dd7f0f6b79dc39dfc90ad66ea.tar.gz llvm-73e5b9ea90ba857dd7f0f6b79dc39dfc90ad66ea.tar.bz2 |
[RISCV] Select (srl (sext_inreg X, i32), uimm5) to SRAIW if only lower 32 bits are used.
SimplifyDemandedBits can turn srl into sra if the bits being shifted
in aren't demanded. This patch can recover the original sra in some cases.
I've renamed the tablegen class for detecting W users since the "overflowing operator"
term I originally borrowed from Operator.h does not include srl.
Reviewed By: luismarques
Differential Revision: https://reviews.llvm.org/D109162
Diffstat (limited to 'llvm/lib/Support/BinaryStreamWriter.cpp')
0 files changed, 0 insertions, 0 deletions