This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Ignore special ABI registers for graphics
ClosedPublic

Authored by sebastian-ne on Dec 8 2021, 6:56 AM.

Details

Summary

Fixed ABI arguments are compute specific and should not be added to
graphics shaders or functions, so do not try to add them.

Diff Detail

Event Timeline

sebastian-ne created this revision.Dec 8 2021, 6:56 AM
sebastian-ne requested review of this revision.Dec 8 2021, 6:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 6:56 AM
foad added inline comments.Dec 8 2021, 7:00 AM
llvm/test/CodeGen/AMDGPU/amdpal-callable.ll
190–192

Why is this now different for SDAG vs GISEL?

arsenm added a comment.Dec 8 2021, 7:00 AM

D115154 removes the option entirely

llvm/lib/Target/AMDGPU/SIISelLowering.cpp
3257–3258

Why is this different? Shader entries shouldn't be seeing calls?

Fix review comment and do not call allocateSpecialInputSGPRs at all for graphics.
That should reduce conflicts with removing the fixed ABI option.

Rebased on top of D115154.

sebastian-ne retitled this revision from [AMDGPU] Ignore fixed ABI for graphics to [AMDGPU] Ignore special ABI registers for graphics.Dec 13 2021, 6:48 AM
sebastian-ne edited the summary of this revision. (Show Details)
arsenm accepted this revision.Dec 13 2021, 7:35 AM
This revision is now accepted and ready to land.Dec 13 2021, 7:35 AM
This revision was landed with ongoing or failed builds.Dec 13 2021, 7:45 AM
This revision was automatically updated to reflect the committed changes.