This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix asserts on non-s32 sitofp/uitofp sources
ClosedPublic

Authored by arsenm on Jun 12 2020, 7:36 AM.

Details

Summary

The combine to form cvt_f32_ubyte0 was assuming the source type was
always 32-bit, but this needs to tolerate any legal source type.

Diff Detail

Event Timeline

arsenm created this revision.Jun 12 2020, 7:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2020, 7:36 AM
nhaehnle accepted this revision.Jun 23 2020, 4:51 AM

LGTM

llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
160

Missing space after the comma

This revision is now accepted and ready to land.Jun 23 2020, 4:51 AM