This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][NFC] Add tests for SLP vectorization of math functions
ClosedPublic

Authored by benshi001 on Mar 8 2023, 2:21 AM.

Details

Summary

RISCV has "vfabs.v" and "vfsqrt.v" so math functions 'abs' and 'sqrt'
can be SLP vectorized. But others 'exp/log/sin/asin/sinh/asinh/...'
can not.

Diff Detail

Event Timeline

benshi001 created this revision.Mar 8 2023, 2:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 8 2023, 2:21 AM
benshi001 requested review of this revision.Mar 8 2023, 2:21 AM
reames accepted this revision.Mar 9 2023, 9:53 AM

LGTM

Side note - We do have lowerings for a number of the rounding ops. You might want to cross reference with VectorIntrinsicCostTable in RISCVTargetTransformInfo,cpp.

This revision is now accepted and ready to land.Mar 9 2023, 9:53 AM