This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add gfx11 feature to force initializing 16 input SGPRs
ClosedPublic

Authored by arsenm on Jun 27 2022, 9:35 AM.

Details

Reviewers
kzhuravl
Joe_Nash
rampitec
Group Reviewers
Restricted Project
Summary

The total user+system SGPR count needs to be padded out to 16 if fewer
inputs are enabled.

Diff Detail

Event Timeline

arsenm created this revision.Jun 27 2022, 9:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2022, 9:35 AM
arsenm requested review of this revision.Jun 27 2022, 9:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2022, 9:35 AM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec added inline comments.Jun 27 2022, 11:20 AM
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
908

I would not call scratch_en a wave offset. With architected flat scratch there is no wave offset.

arsenm updated this revision to Diff 441045.Jun 29 2022, 9:24 AM
arsenm marked an inline comment as done.

Rename variable

This revision is now accepted and ready to land.Jun 29 2022, 11:39 AM
arsenm closed this revision.Jun 29 2022, 11:52 AM
foad added inline comments.Jul 13 2022, 4:06 AM
llvm/lib/Target/AMDGPU/AMDGPU.td
1271

Should apply to gfx1100 but not gfx1101.

llvm/lib/Target/AMDGPU/SIISelLowering.cpp
2102

Should only do this in wave32 mode.

arsenm marked 2 inline comments as done.Jul 20 2022, 6:18 PM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/AMDGPU.td
1271