This is an archive of the discontinued LLVM Phabricator instance.

[llvm_stats] Do not import llvm.stats metadata for thinlto
ClosedPublic

Authored by wlei on Nov 28 2022, 10:07 AM.

Details

Summary

The stats are computed per module and will all be merged in the binary, importing the metadata will cause duplication of the stats.

Diff Detail

Event Timeline

wlei created this revision.Nov 28 2022, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 10:07 AM
Herald added subscribers: ormris, hoy, wenlei and 3 others. · View Herald Transcript
wlei requested review of this revision.Nov 28 2022, 10:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 10:07 AM
wlei edited the summary of this revision. (Show Details)Nov 28 2022, 10:11 AM
wlei added reviewers: hoy, wenlei.
wlei edited the summary of this revision. (Show Details)
hoy added inline comments.Nov 28 2022, 11:13 AM
llvm/include/llvm/IR/Metadata.h
60 ↗(On Diff #478275)

I'm not sure this is a good place to define the constant and I don't see any other good place for it either. Maybe just leave "llvm.stats" in place? "llvm.dbg.cu" is an example.

wlei added inline comments.Nov 28 2022, 11:32 AM
llvm/include/llvm/IR/Metadata.h
60 ↗(On Diff #478275)

Sounds good!

wlei updated this revision to Diff 478301.Nov 28 2022, 11:32 AM

Updating D138833: [llvm_stats] Do not import llvm.stats metadata for thinlto

hoy accepted this revision.Nov 28 2022, 11:44 AM

lgtm, thanks.

This revision is now accepted and ready to land.Nov 28 2022, 11:44 AM
wenlei accepted this revision.Nov 28 2022, 4:30 PM

thanks for the fix!

This revision was automatically updated to reflect the committed changes.