This is an archive of the discontinued LLVM Phabricator instance.

[NFC][MLGO] Make logging more robust
ClosedPublic

Authored by mtrofin on Aug 5 2021, 12:31 PM.

Details

Summary
  1. add some self-diagnosis (when asserts are enabled) to check that all

features have the same nr of entries

  1. avoid storing pointers to mutable fields because the proto API

contract doesn't actually guarantee those stay fixed even if no further
mutation of the object occurs.

Diff Detail

Event Timeline

mtrofin created this revision.Aug 5 2021, 12:31 PM
mtrofin requested review of this revision.Aug 5 2021, 12:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2021, 12:31 PM
yundiqian accepted this revision.Aug 6 2021, 3:45 AM
This revision is now accepted and ready to land.Aug 6 2021, 3:45 AM
This revision was landed with ongoing or failed builds.Aug 6 2021, 4:52 AM
This revision was automatically updated to reflect the committed changes.