This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Implement fewerElementsVector for G_EXTRACT_VECTOR_ELT
ClosedPublic

Authored by arsenm on Jul 27 2020, 8:03 AM.

Details

Summary

Use the same basic strategy as LegalizeVectorTypes. Try to index into
smaller pieces if there's a constant index, and otherwise fall back to
a stack temporary.

Diff Detail

Event Timeline

arsenm created this revision.Jul 27 2020, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2020, 8:03 AM
arsenm updated this revision to Diff 281093.Jul 27 2020, 6:11 PM

Forgot to attach test

arsenm updated this revision to Diff 281437.Jul 28 2020, 6:10 PM

Add todo

aemerson accepted this revision.Aug 6 2020, 11:06 AM

LGTM.

This revision is now accepted and ready to land.Aug 6 2020, 11:06 AM