This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Diagnose illegal SGPR to VGPR copies
ClosedPublic

Authored by arsenm on Mar 24 2017, 1:47 PM.

Details

Reviewers
kzhuravl
Summary

This is possible in ways that are not compiler bugs,
so stop asserting on them.

This emits an extra error when emitting objects when it
can't encode the new pseudo, but I'm not sure that matters.

Diff Detail

Event Timeline

arsenm created this revision.Mar 24 2017, 1:47 PM
kzhuravl accepted this revision.Apr 6 2017, 12:54 PM

LGTM.

This revision is now accepted and ready to land.Apr 6 2017, 12:54 PM
arsenm closed this revision.Apr 6 2017, 2:22 PM

r299712

foad added a subscriber: foad.Mar 2 2023, 1:07 AM
foad added inline comments.
lib/Target/AMDGPU/SIInstrInfo.cpp
357

"VGPR to SGPR", surely??

Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2023, 1:07 AM
arsenm added inline comments.Mar 2 2023, 4:54 AM
lib/Target/AMDGPU/SIInstrInfo.cpp
357

Yes

foad added inline comments.Mar 3 2023, 3:49 AM
lib/Target/AMDGPU/SIInstrInfo.cpp
357