This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Do not create readfirstlane with non-s32 type
ClosedPublic

Authored by arsenm on Jan 19 2022, 1:37 PM.

Details

Reviewers
foad
mbrkusanin
Petar.Avramovic
Group Reviewers
Restricted Project
Summary

We should probably handle any 32-bit type here, but the intrinsic
definition and selection pattern currently do not. Avoids a few lit
tests failures when switched on by default.

Diff Detail

Event Timeline

arsenm created this revision.Jan 19 2022, 1:37 PM
arsenm requested review of this revision.Jan 19 2022, 1:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2022, 1:37 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad added inline comments.Jan 20 2022, 2:09 AM
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_ps.ll
142–144

Looks like an abandoned attempt to test the bitcast path?

arsenm added inline comments.Nov 21 2022, 8:25 PM
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_ps.ll
142–144

v2i16 isn't actually added to the calling convention handling, so it fails on the DAG and fails here. I'll just add it because why not

Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2022, 8:25 PM
Herald added a subscriber: kosarev. · View Herald Transcript
arsenm updated this revision to Diff 477054.Nov 21 2022, 8:25 PM

Fix v2i16

foad accepted this revision.Dec 1 2022, 2:28 AM
This revision is now accepted and ready to land.Dec 1 2022, 2:28 AM