This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add occupancy to serialized MachineFunctionInfo
ClosedPublic

Authored by arsenm on Jan 15 2021, 1:35 PM.

Details

Summary

Not sure about the default value handling, but also not sure
defaulting to a theoretically subtarget dependent value.

Diff Detail

Event Timeline

arsenm created this revision.Jan 15 2021, 1:35 PM
arsenm requested review of this revision.Jan 15 2021, 1:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 15 2021, 1:35 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Jan 15 2021, 1:40 PM
rampitec added inline comments.
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
278

Maximum is ST dependent. It can be better to use getMaxWavesPerEU().

This revision is now accepted and ready to land.Jan 15 2021, 1:40 PM
arsenm closed this revision.Jan 21 2021, 6:21 AM
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
278

We don't have access to that during construction though