This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFC] Print functions after attaching profile (-print-profile)
ClosedPublic

Authored by Amir on Jun 28 2023, 12:54 PM.

Details

Summary

Add an extra point of dumping functions: immediately after attaching the profile information.
This dumping is enabled by newly introduced -print-profile and -print-all.

The reason is that in aggregate-only/perf2bolt mode BOLT may not reach the point of
printing the function after CFG is constructed (-print-cfg), while we may still want to inspect
the attached profile, especially for diff'ing purposes.

Diff Detail

Event Timeline

Amir created this revision.Jun 28 2023, 12:54 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Jun 28 2023, 12:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 12:54 PM
Amir edited the summary of this revision. (Show Details)Jun 28 2023, 12:57 PM
This revision is now accepted and ready to land.Jun 28 2023, 4:15 PM