This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Use extension instead of merge with undef in common case
ClosedPublic

Authored by arsenm on Jul 12 2021, 7:40 AM.

Details

Summary

This fixes not respecting signext/zeroext in these cases. In the
anyext case, this avoids a larger merge with undef and should be a
better canonical form.

This should also handle this if a merge is needed, but I'm not aware
of a case where that can happen. In a future change this will also
allow AMDGPU to drop some custom code without introducing regressions.

Diff Detail

Event Timeline

arsenm created this revision.Jul 12 2021, 7:40 AM
arsenm requested review of this revision.Jul 12 2021, 7:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2021, 7:40 AM
Herald added a subscriber: wdng. · View Herald Transcript
paquette accepted this revision.Jul 12 2021, 9:12 AM

LGTM

This revision is now accepted and ready to land.Jul 12 2021, 9:12 AM