This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Select more G_EXTRACTs correctly
ClosedPublic

Authored by arsenm on Jan 2 2020, 6:55 AM.

Details

Reviewers
nhaehnle
kerbowa
Summary

This assumed a 32-bit extract size, which would produce invalid copies
with 64-bit extracts. Handle the easy case. Ideally we would have a
way to get the proper subreg index for any 32-bit offset, but there
should probably be a tablegenerated way of getting the subreg index
for any size and offset.

Diff Detail

Event Timeline

arsenm created this revision.Jan 2 2020, 6:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2020, 6:56 AM
kerbowa accepted this revision.Jan 5 2020, 10:42 PM

LGTM

This revision is now accepted and ready to land.Jan 5 2020, 10:42 PM