This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: GlobalISel: Handle 16-bit SALU min/max
ClosedPublic

Authored by arsenm on Jul 1 2019, 5:54 AM.

Details

Summary

This needs to be extended to s32, and expanded into cmp+select. This
is relying on the fact that widenScalar happens to leave the
instruction in place, but this isn't a guaranteed property of
LegalizerHelper.

Diff Detail

Event Timeline

arsenm created this revision.Jul 1 2019, 5:54 AM
tstellar accepted this revision.Jul 1 2019, 7:51 AM

LGTM.

This revision is now accepted and ready to land.Jul 1 2019, 7:51 AM
arsenm closed this revision.Jul 1 2019, 11:35 AM

r364831