This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine][AMDGPU] Fix crash with v3i16/v3f16 buffer intrinsics
ClosedPublic

Authored by piotr on Oct 11 2019, 5:09 AM.

Details

Summary

This is something of a workaround to avoid a crash later on in type
legalizer (WidenVectorResult()).
Also added some f16 tests, including a non-working v3f16 case with
a FIXME.

Diff Detail

Event Timeline

piotr created this revision.Oct 11 2019, 5:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2019, 5:09 AM
piotr updated this revision to Diff 224570.Oct 11 2019, 5:14 AM

Fixed wrong spacing.

arsenm added inline comments.Oct 11 2019, 12:08 PM
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
975 ↗(On Diff #224570)

I think I have these working in GlobalISel already

977 ↗(On Diff #224570)

!= 32 would be a bit safer

piotr updated this revision to Diff 224833.Oct 14 2019, 4:53 AM

Changed "== 16" to "!= 32".

arsenm accepted this revision.Oct 15 2019, 1:02 PM

LGTM

This revision is now accepted and ready to land.Oct 15 2019, 1:02 PM
This revision was automatically updated to reflect the committed changes.