This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix mishandling SGPR v2s16 add/sub/mul
ClosedPublic

Authored by arsenm on Feb 19 2020, 10:53 AM.

Details

Summary

We weren't considering the packed case correctly, and this was passing
through to the selector. The selector only checked the size, so this
would incorrectly compile to a single 32-bit scalar add.

As usual, the LegalizerHelper is somewhat awkward to use from
applyMappingImpl. I think this is the first place we've needed
multi-step legalization here though.

Diff Detail

Event Timeline

arsenm created this revision.Feb 19 2020, 10:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2020, 10:53 AM
kerbowa accepted this revision.Feb 27 2020, 2:47 PM

LGTM

This revision is now accepted and ready to land.Feb 27 2020, 2:47 PM
foad accepted this revision.Feb 28 2020, 3:50 AM