diff options
| author | Ben Shi <powerman1st@163.com> | 2021-07-22 10:26:52 +0800 |
|---|---|---|
| committer | Ben Shi <powerman1st@163.com> | 2021-07-22 10:28:41 +0800 |
| commit | 9e5c5afc7ee24ace168418138c99dcede357cd50 (patch) | |
| tree | ab119e2fc505215f1fad1c34fd30f8bbe11b5c2e /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp | |
| parent | 6efb3220b47249df0fe0713e1f1e617d8f1000ba (diff) | |
| download | llvm-9e5c5afc7ee24ace168418138c99dcede357cd50.zip llvm-9e5c5afc7ee24ace168418138c99dcede357cd50.tar.gz llvm-9e5c5afc7ee24ace168418138c99dcede357cd50.tar.bz2 | |
[RISCV] Optimize multiplication in the zba extension with SH*ADD
This patch make the following optimization.
(mul x, 3 * power_of_2) -> (SLLI (SH1ADD x, x), bits)
(mul x, 5 * power_of_2) -> (SLLI (SH2ADD x, x), bits)
(mul x, 9 * power_of_2) -> (SLLI (SH3ADD x, x), bits)
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D105796
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions
