This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Sort BranchData in DataAggregator
ClosedPublic

Authored by Amir on Jun 12 2023, 10:36 AM.

Details

Reviewers
rafauler
maksfb
Group Reviewers
Restricted Project
Commits
rG224e4cc516c7: [BOLT] Sort BranchData in DataAggregator
Summary

Align perf reader to fdata behavior by sorting BranchData after reading samples,
in the same way as DataReader:
https://github.com/llvm/llvm-project/blob/20c66a0c66340f44f04b6526e45bcc5d872d480a/bolt/lib/Profile/DataReader.cpp#L1239

Namely, that order affects CallSiteInfo annotations which determine the
construction order of CallGraph, which in turn affects function reordering.

Diff Detail

Event Timeline

Amir created this revision.Jun 12 2023, 10:36 AM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Jun 12 2023, 10:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2023, 10:36 AM
Amir edited the summary of this revision. (Show Details)Jun 12 2023, 10:40 AM
This revision is now accepted and ready to land.Jun 15 2023, 11:48 AM
This revision was automatically updated to reflect the committed changes.