This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Handle __uniq suffix added by -funique-internal-linkage-names
ClosedPublic

Authored by Amir on Jan 18 2023, 6:29 PM.

Details

Summary

In profile matching, if .__uniq suffix added for internal linkage
symbols with -funique-internal-linkage-names prevents BOLT from
matching to a binary function, try to strip the suffix and perform
fuzzy name matching.

Follow-up to D124117.

Diff Detail

Event Timeline

Amir created this revision.Jan 18 2023, 6:29 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir updated this revision to Diff 490992.Jan 20 2023, 3:35 PM

Remove hasVolatileName changes

Amir published this revision for review.Jan 20 2023, 3:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2023, 3:35 PM

Nice! Could you add a summary and a test case to bolt/test/X86/lto-name-match.s?

Amir updated this revision to Diff 491000.Jan 20 2023, 4:00 PM

Update lto-name-match.s

maksfb accepted this revision.Jan 20 2023, 4:03 PM
This revision is now accepted and ready to land.Jan 20 2023, 4:03 PM
Amir retitled this revision from [BOLT] Handle __uniq prefix added by -funique-internal-linkage-names to [BOLT] Handle __uniq suffix added by -funique-internal-linkage-names.Jan 20 2023, 7:22 PM
Amir edited the summary of this revision. (Show Details)