aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-06-19 10:09:08 +0800
committerBen Shi <powerman1st@163.com>2021-06-19 14:31:01 +0800
commit31190738c024298745d877a47ef95a5263ea5c9e (patch)
treec1b704df92dcbf44c8f2584a65a125f57042c805 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parent382b3fe043380c02bcffc8e3fba928bea12c0f5a (diff)
downloadllvm-31190738c024298745d877a47ef95a5263ea5c9e.zip
llvm-31190738c024298745d877a47ef95a5263ea5c9e.tar.gz
llvm-31190738c024298745d877a47ef95a5263ea5c9e.tar.bz2
[RISCV][test] Add new tests for add-mul optimization in the zba extension with SH*ADD
These tests will show the following optimization by future patches. 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) Rx * (3 << C) => (SLLI (SH1ADD Rx, Rx), C) Rx * (5 << C) => (SLLI (SH2ADD Rx, Rx), C) Rx * (9 << C) => (SLLI (SH3ADD Rx, Rx), C) Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D104507
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions