This is an archive of the discontinued LLVM Phabricator instance.

[MemProf] Fix combined index handling for locals
ClosedPublic

Authored by tejohnson on Dec 30 2022, 12:06 PM.

Details

Summary

Since the linker does not resolve local symbols, we cannot look up
whether they are prevailing. The prior check was blocking all locals
from getting memprof summaries in the combined index.

Modified the existing test case to contain a local. This necessitated
some other fixes as the order of summary entries changed.

Diff Detail

Event Timeline

tejohnson created this revision.Dec 30 2022, 12:06 PM
tejohnson requested review of this revision.Dec 30 2022, 12:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 30 2022, 12:06 PM
snehasish accepted this revision.Jan 3 2023, 1:15 PM

lgtm

(Unrelated to this patch)
I guess we should update https://llvm.org/docs/LangRef.html#thinlto-summary at some point with the memProf extensions.

This revision is now accepted and ready to land.Jan 3 2023, 1:15 PM

lgtm

(Unrelated to this patch)
I guess we should update https://llvm.org/docs/LangRef.html#thinlto-summary at some point with the memProf extensions.

Good point, will send a patch for that.

This revision was landed with ongoing or failed builds.Jan 9 2023, 2:11 PM
This revision was automatically updated to reflect the committed changes.