This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Refactor selectVSplat. NFCI
ClosedPublic

Authored by luke on Aug 24 2023, 7:48 AM.

Details

Summary

This patch shares the logic between the various splat ComplexPatterns to help
the diff in some upcoming patches.

It's worth noting that the uimm splat pattern now takes into account the
implicit truncation + sign extend semantics of vmv_v_x_vl, but that doesn't
seem to affect the result since it always took the sext value anyway.

Diff Detail

Event Timeline

luke created this revision.Aug 24 2023, 7:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 7:48 AM
luke requested review of this revision.Aug 24 2023, 7:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 7:48 AM
This revision is now accepted and ready to land.Aug 24 2023, 9:50 AM
This revision was landed with ongoing or failed builds.Aug 29 2023, 7:42 AM
This revision was automatically updated to reflect the committed changes.