This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

benshi001 created this revision.Jul 23 2021, 4:11 AM
benshi001 requested review of this revision.Jul 23 2021, 4:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 4:11 AM

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
This revision was automatically updated to reflect the committed changes.