This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix assert on 16-bit G_EXTRACT results
ClosedPublic

Authored by arsenm on May 20 2020, 10:36 AM.

Details

Summary

I consider this to be a hack, since we probably should not mark any
16-bit extract as legal, and require all extracts to be done on
multiples of 32. There are quite a few more battles to fight in the
legalizer for sub-dword vectors, so just select this for now so we can
pass OpenCL conformance without crashing.

Also fix the same assert for G_INSERTs. Unlike G_EXTRACT there's not a
trivial way to select this so just fail on it.

Diff Detail

Event Timeline

arsenm created this revision.May 20 2020, 10:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2020, 10:36 AM
kerbowa accepted this revision.May 26 2020, 8:40 AM

LGTM

This revision is now accepted and ready to land.May 26 2020, 8:40 AM