[PATCH] D106647: [RISCV][test] Add new tests for mul optimization in the zba extension with SH*ADD
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 23 04:11:24 PDT 2021
benshi001 created this revision.
benshi001 added reviewers: craig.topper, asb, luismarques, LevyHsu, jrtc27.
Herald added subscribers: vkmr, frasercrmck, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
These test will show the following optimization by future patches.
(mul x, (power_of_2 + 2)) => (SH1ADD x, (SLLI x, bits))
(mul x, (power_of_2 + 4)) => (SH2ADD x, (SLLI x, bits))
(mul x, (power_of_2 + 8)) => (SH3ADD x, (SLLI x, bits))
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106647
Files:
llvm/test/CodeGen/RISCV/rv32zba.ll
llvm/test/CodeGen/RISCV/rv64zba.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106647.361153.patch
Type: text/x-patch
Size: 4091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/186f019e/attachment.bin>
More information about the llvm-commits
mailing list