This is an archive of the discontinued LLVM Phabricator instance.

[Remarks] Add option to retain all remarks during remark linking.
ClosedPublic

Authored by fhahn on May 22 2023, 6:07 AM.

Details

Summary

At the moment, dsymutil drops all remarks without debug location.

There are many cases where debug location may be missing for remarks,
mostly due LLVM not preserving debug locations. When using bitstream
remarks for statistical analysis, those missed remarks mean we get an
incomplete picture.

The new remarks-keep-all flag can be used to retain all remarks during
linking.

Diff Detail

Event Timeline

fhahn created this revision.May 22 2023, 6:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 6:07 AM
fhahn requested review of this revision.May 22 2023, 6:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 6:07 AM

Looks fine to me but @thegameg should LGTM this.

thegameg accepted this revision.May 22 2023, 8:35 AM

LGTM, thank you!

I don't mind having this enabled by default, fwiw. We can change some of our users that only need remarks with source locations later to pass the flag to dsymutil to enable them.

This revision is now accepted and ready to land.May 22 2023, 8:35 AM
fhahn updated this revision to Diff 525726.May 25 2023, 11:43 AM

Flip the default to keep remarks without debug locs by default. I am planning on landing this tomorrow unless there are any additional comments :)

This revision was landed with ongoing or failed builds.May 26 2023, 3:02 AM
This revision was automatically updated to reflect the committed changes.