This is an archive of the discontinued LLVM Phabricator instance.

[MemProf] Update hot/cold information after importing
ClosedPublic

Authored by tejohnson on May 10 2023, 1:18 PM.

Details

Summary

The support added by D149215 to remove memprof metadata and attributes
if we don't link with an allocator supporting hot/cold operator new
interfaces did not update imported code. Move the update handling later
in the ThinLTO backend to just after importing, and update the test to
check this case.

Diff Detail

Event Timeline

tejohnson created this revision.May 10 2023, 1:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 1:18 PM
tejohnson requested review of this revision.May 10 2023, 1:18 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 10 2023, 1:18 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
davidxl accepted this revision.May 10 2023, 1:42 PM

lgtm

This revision is now accepted and ready to land.May 10 2023, 1:42 PM
This revision was landed with ongoing or failed builds.May 10 2023, 2:58 PM
This revision was automatically updated to reflect the committed changes.