This is an archive of the discontinued LLVM Phabricator instance.

[memprof] Canonicalize the function name prior to hashing.
ClosedPublic

Authored by snehasish on Aug 29 2023, 12:02 PM.

Details

Summary

Canonicalize the function name (strip suffixes etc) to ensure that
function name suffixes added by late stage passes do not cause
mismatches when memprof profile data is consumed.

Diff Detail

Event Timeline

snehasish created this revision.Aug 29 2023, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 12:02 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
snehasish requested review of this revision.Aug 29 2023, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2023, 12:02 PM
tejohnson accepted this revision.Aug 29 2023, 1:31 PM

lgtm with a stale comment cleanup

llvm/lib/ProfileData/MemProf.cpp
82–83

You can remove the last 2 sentences here since they are redundant with the above comment where we now will do the stripping.

This revision is now accepted and ready to land.Aug 29 2023, 1:31 PM
snehasish updated this revision to Diff 554481.Aug 29 2023, 1:43 PM

Address comments.

This revision was landed with ongoing or failed builds.Aug 29 2023, 1:45 PM
This revision was automatically updated to reflect the committed changes.