This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add options to override SGPR and VGPR blocks
AbandonedPublic

Authored by kzhuravl on Aug 18 2021, 12:39 PM.

Details

Reviewers
arsenm
t-tye
Summary

This is needed for experimentation

Diff Detail

Event Timeline

kzhuravl created this revision.Aug 18 2021, 12:39 PM
kzhuravl requested review of this revision.Aug 18 2021, 12:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2021, 12:39 PM
Herald added a subscriber: wdng. · View Herald Transcript
t-tye added inline comments.Aug 18 2021, 8:28 PM
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
4815

Should this set to max of calculated and overridden value? We do not want to override to force fewer registers than the code actually uses. Same comment for SGPR.

kzhuravl added inline comments.Aug 19 2021, 8:46 AM
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
4815

Instead of setting max, can we return error saying "cannot override because isa is using more registers"?

t-tye added inline comments.Aug 19 2021, 9:10 PM
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
4815

That works for me.

kzhuravl marked 2 inline comments as done.Aug 20 2021, 11:31 AM
kzhuravl updated this revision to Diff 367843.Aug 20 2021, 11:34 AM

Address review feedback.

arsenm requested changes to this revision.Nov 16 2022, 3:45 PM

Is this still relevant? Would this be better served by making the lower bound of amdgpu-waves-per-eu artificially increase the register usage?

This revision now requires changes to proceed.Nov 16 2022, 3:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 3:45 PM
Herald added a subscriber: kosarev. · View Herald Transcript

Is this still relevant? Would this be better served by making the lower bound of amdgpu-waves-per-eu artificially increase the register usage?

No longer relevant.

kzhuravl abandoned this revision.May 5 2023, 12:32 PM