This is an archive of the discontinued LLVM Phabricator instance.

[nfc][mlgo] Lazily compute the regalloc reward
ClosedPublic

Authored by mtrofin on Sep 26 2022, 12:22 PM.

Diff Detail

Event Timeline

mtrofin created this revision.Sep 26 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 26 2022, 12:22 PM
mtrofin requested review of this revision.Sep 26 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 26 2022, 12:22 PM

so the point of this is just to avoid recomputing the reward for the two different regalloc models? the reward will always be computed the same way for both models?

so the point of this is just to avoid recomputing the reward for the two different regalloc models? the reward will always be computed the same way for both models?

the point is to avoid computing if noone needs it - which is always the case except when training.

jacobhegna accepted this revision.Sep 26 2022, 1:45 PM

so the point of this is just to avoid recomputing the reward for the two different regalloc models? the reward will always be computed the same way for both models?

the point is to avoid computing if noone needs it - which is always the case except when training.

ah ah ok, makes sense

This revision is now accepted and ready to land.Sep 26 2022, 1:45 PM
This revision was landed with ongoing or failed builds.Sep 26 2022, 3:35 PM
This revision was automatically updated to reflect the committed changes.