This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Rework legalization for extract/insert vector elt
ClosedPublic

Authored by Petar.Avramovic on Dec 21 2021, 8:49 AM.

Details

Summary

Use G_MERGE_VALUES and G_UNMERGE_VALUES on vector elements instead of
G_EXTRACT and G_INSERT when doing custom legalization for
G_EXTRACT_VECTOR_ELT and G_INSERT_VECTOR_ELT.
With this approach legalization artifact combiner gets simple access
to all vector elements.

Diff Detail

Event Timeline

Petar.Avramovic requested review of this revision.Dec 21 2021, 8:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2021, 8:49 AM
arsenm accepted this revision.Jan 4 2022, 10:03 AM
This revision is now accepted and ready to land.Jan 4 2022, 10:03 AM
This revision was landed with ongoing or failed builds.Jan 10 2022, 4:24 AM
This revision was automatically updated to reflect the committed changes.