This is an archive of the discontinued LLVM Phabricator instance.

[NFC][MLGO] Factor ModelUnderTrainingRunner for reuse
ClosedPublic

Authored by mtrofin on Dec 9 2021, 12:57 PM.

Details

Summary

This is so we may reuse it. It was very non-inliner specific already.

Diff Detail

Event Timeline

mtrofin created this revision.Dec 9 2021, 12:57 PM
mtrofin requested review of this revision.Dec 9 2021, 12:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2021, 12:57 PM
yundiqian accepted this revision.Dec 10 2021, 10:49 AM
yundiqian added inline comments.
llvm/lib/Analysis/ModelUnderTrainingRunner.cpp
43

this is inline & regalloc specific, up to you to decide whether to fix it this time (when checking in regalloc code) or next time when we have different output types

This revision is now accepted and ready to land.Dec 10 2021, 10:49 AM
mtrofin marked an inline comment as done.Dec 10 2021, 11:16 AM
mtrofin added inline comments.
llvm/lib/Analysis/ModelUnderTrainingRunner.cpp
43

good catch! We can just return the untyped value, we have an API for that. Fixing now.

This revision was landed with ongoing or failed builds.Dec 10 2021, 11:24 AM
This revision was automatically updated to reflect the committed changes.
mtrofin marked an inline comment as done.