diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-02-16 09:13:32 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-02-16 09:22:11 -0800 |
commit | cfbbcc544c39b008bce5612148797d0f63bd26c7 (patch) | |
tree | 3675d832985d1bc0b44cbe309ca4d1aeb162ceb5 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h | |
parent | 1daa66d3fda96a7c6b670e05b9240a03fb8bd8a7 (diff) | |
download | llvm-cfbbcc544c39b008bce5612148797d0f63bd26c7.zip llvm-cfbbcc544c39b008bce5612148797d0f63bd26c7.tar.gz llvm-cfbbcc544c39b008bce5612148797d0f63bd26c7.tar.bz2 |
[RISCV] Improve lowering of SHL_PARTS/SRL_PARTS/SRA_PARTS.
Part of the shift lowering creates a (sub XLEN-1, ShAmt). When this
value is used we know that ShAmt is [0..XLEN-1]. Since XLEN is a power
of 2 we can replace the sub with an xor. This allows us to use XORI
instead of LI+SUB.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D119411
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
0 files changed, 0 insertions, 0 deletions