aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-06-19 11:01:43 +0800
committerBen Shi <powerman1st@163.com>2021-06-19 14:33:27 +0800
commitd934b72809cb3cbc9f646a2b505e781e0b8b3d7b (patch)
treee27bb56e2fe4b0e8218b41c46895c54019ced3fc /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parent31190738c024298745d877a47ef95a5263ea5c9e (diff)
downloadllvm-d934b72809cb3cbc9f646a2b505e781e0b8b3d7b.zip
llvm-d934b72809cb3cbc9f646a2b505e781e0b8b3d7b.tar.gz
llvm-d934b72809cb3cbc9f646a2b505e781e0b8b3d7b.tar.bz2
[RISCV] Optimize add-mul in the zba extension with SH*ADD
This patch does the following optimization. Rx + Ry * 18 => (SH1ADD (SH3ADD Rx, Rx), Ry) Rx + Ry * 20 => (SH2ADD (SH2ADD Rx, Rx), Ry) Rx + Ry * 24 => (SH3ADD (SH1ADD Rx, Rx), Ry) Rx + Ry * 36 => (SH2ADD (SH3ADD Rx, Rx), Ry) Rx + Ry * 40 => (SH3ADD (SH2ADD Rx, Rx), Ry) Rx + Ry * 72 => (SH3ADD (SH3ADD Rx, Rx), Ry) Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D104588
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions