This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Avoid repeating a little work in the scheduler
AbandonedPublic

Authored by arsenm on Sep 6 2019, 12:57 PM.

Details

Reviewers
rampitec
Summary

These getters are non-trivial, and should always return the same
result. Move them to avoid this, although this doesn't give a
noteworthy compile time improvement.

Diff Detail

Event Timeline

arsenm created this revision.Sep 6 2019, 12:57 PM
rampitec accepted this revision.Sep 6 2019, 1:10 PM

LGTM, but I believe they are trivial:

unsigned SGPRSetID;
unsigned VGPRSetID;

...

unsigned getSGPRPressureSet() const { return SGPRSetID; };
unsigned getVGPRPressureSet() const { return VGPRSetID; };
This revision is now accepted and ready to land.Sep 6 2019, 1:10 PM
arsenm abandoned this revision.Sep 6 2019, 1:13 PM

I think I was looking at getRegPressureSetLimit

I think I was looking at getRegPressureSetLimit

That one is non-trivial, but it will change the answer every time occupancy changes.