This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] copyPhysReg() for 16 bit SGPR subregs
ClosedPublic

Authored by rampitec on Apr 15 2020, 4:42 PM.

Diff Detail

Event Timeline

rampitec created this revision.Apr 15 2020, 4:42 PM
rampitec updated this revision to Diff 258132.Apr 16 2020, 12:38 PM

Improved handling for GFX8. In a nutshell GFX8 cannot use hi16 in any situation because SDWA does not support SGPR sources on GFX8. At least there hi16 shall not be used, but it does not have packed f16 for legitimate use of it anyway.

arsenm added inline comments.Apr 16 2020, 1:36 PM
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
708

Maybe should be report_fatal_error since you could write unsatisfiable MIR, and also a test that hits it

rampitec updated this revision to Diff 258178.Apr 16 2020, 2:44 PM
rampitec marked an inline comment as done.

Use reportIllegalCopy() instead of assert.

arsenm accepted this revision.Apr 17 2020, 7:02 AM
This revision is now accepted and ready to land.Apr 17 2020, 7:02 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2020, 12:26 PM