This is an archive of the discontinued LLVM Phabricator instance.

[llvm][MLInliner] Don't log 'mandatory' events
ClosedPublic

Authored by mtrofin on Aug 5 2020, 4:18 PM.

Details

Summary

We don't want mandatory events in the training log. We do want to handle
them, to keep the native size accounting accurate, but that's all.

Fixed the code, also expanded the test to capture this.

Diff Detail

Event Timeline

mtrofin created this revision.Aug 5 2020, 4:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2020, 4:18 PM
mtrofin requested review of this revision.Aug 5 2020, 4:18 PM
yundiqian accepted this revision.Aug 5 2020, 11:23 PM
This revision is now accepted and ready to land.Aug 5 2020, 11:23 PM
MaskRay added inline comments.
llvm/test/Transforms/Inline/ML/bounds-checks-rewards.ll
21

Note that %S/../../ is uncommon. This will break our internal lit runner.

mtrofin marked an inline comment as done.Aug 6 2020, 8:45 AM
mtrofin added inline comments.
llvm/test/Transforms/Inline/ML/bounds-checks-rewards.ll
21

Ack - as discussed offline, I would also prefer moving the inputs to the local Inputs dir. For the interim (i.e. until we actually enable this by default in our internal build, for example, or until we move the files), I'll add a comment warning test maintainers about the cross-folder dependency.

This revision was landed with ongoing or failed builds.Aug 6 2020, 9:04 AM
This revision was automatically updated to reflect the committed changes.
mtrofin marked an inline comment as done.