This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG][RISCV] Add tests showing missed scalable-splat optimizations
ClosedPublic

Authored by frasercrmck on Jul 22 2021, 10:19 AM.

Details

Summary

These tests show missed opportunities in the SelectionDAG layer when
dealing with scalable-vector splats. All of these are handled for the
equivalent ISD::BUILD_VECTOR code, and the tests have largely been
translated from the equivalent X86 tests.

Diff Detail

Event Timeline

frasercrmck created this revision.Jul 22 2021, 10:19 AM
frasercrmck requested review of this revision.Jul 22 2021, 10:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2021, 10:19 AM
This revision is now accepted and ready to land.Jul 22 2021, 1:15 PM
This revision was landed with ongoing or failed builds.Jul 22 2021, 11:07 PM
This revision was automatically updated to reflect the committed changes.

LGTM

Cheers. I took the liberty of adding a few extra urem tests to better show the range of changes introduced in the follow-up D106575