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))
Paths
| Differential D106647
[RISCV][test] Add new tests for mul optimization in the zba extension with SH*ADD ClosedPublic Authored by benshi001 on Jul 23 2021, 4:11 AM.
Details Summary 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))
Diff Detail
Event TimelineHerald added subscribers: vkmr, frasercrmck, evandro and 21 others. · View Herald TranscriptJul 23 2021, 4:11 AM benshi001 added a child revision: D106648: [RISCV] Optimize mul in the zba extension with SH*ADD.Jul 23 2021, 4:16 AM Comment Actions This patch's child revision is approved, https://reviews.llvm.org/D106648 This one also needs approval since its child depends on it. This revision is now accepted and ready to land.Jul 28 2021, 6:06 PM This revision was landed with ongoing or failed builds.Jul 28 2021, 6:47 PM Closed by commit rG2a2d83d916aa: [RISCV][test] Add new tests for mul optimization in the zba extension with… (authored by benshi001). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 362601 llvm/test/CodeGen/RISCV/rv32zba.ll
llvm/test/CodeGen/RISCV/rv64zba.ll
|