This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix assertions on invalid addrspacecasts
ClosedPublic

Authored by arsenm on Jan 26 2022, 7:18 PM.

Details

Summary

Fixes some assert on invalid situations and starts directly emitting
the error.

Diff Detail

Event Timeline

arsenm created this revision.Jan 26 2022, 7:18 PM
arsenm requested review of this revision.Jan 26 2022, 7:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 7:18 PM
Herald added a subscriber: wdng. · View Herald Transcript
sebastian-ne added inline comments.Jan 27 2022, 1:57 AM
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
1937–1943

Should this check that the DestTy is 64 bit like in the SDag?
Otherwise addrspace(6) to addrspace(3) cast seems to be accepted.

arsenm updated this revision to Diff 403665.Jan 27 2022, 8:13 AM

Fix not catching 6->3 case

arsenm marked an inline comment as done.Jan 27 2022, 8:13 AM
sebastian-ne accepted this revision.Jan 27 2022, 8:18 AM
This revision is now accepted and ready to land.Jan 27 2022, 8:18 AM