This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Check no-LBR samples in mayHaveProfileData
ClosedPublic

Authored by Amir on Dec 16 2022, 6:36 PM.

Details

Reviewers
rafauler
maksfb
Group Reviewers
Restricted Project
Commits
rG6b05a62a6b10: [BOLT] Check no-LBR samples in mayHaveProfileData
Summary

No-LBR mode wasn't tested and slipped when mayHaveProfileData was added for
Lite mode. This enables processing of profiles collected without LBR and
converted with perf2bolt -nl option.

Test Plan:
bin/llvm-lit -a tools/bolt/test/X86/nolbr.s
https://github.com/rafaelauler/bolt-tests/pull/20

Diff Detail

Event Timeline

Amir created this revision.Dec 16 2022, 6:36 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Dec 16 2022, 6:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 16 2022, 6:36 PM
Amir edited the summary of this revision. (Show Details)Dec 16 2022, 6:54 PM

Thanks for the fix! Anyway we can get link_fdata to work with the sample data (if it doesn't already) to remove the necessity for the binary test?

Amir updated this revision to Diff 484166.Dec 19 2022, 10:26 PM

Add X86/nolbr.s test, update link_fdata to accept no-lbr profile

Amir edited the summary of this revision. (Show Details)Dec 19 2022, 10:26 PM
Amir updated this revision to Diff 484724.Dec 21 2022, 5:40 PM

Fixup DataAggregator::processProfile (mark the function as profiled).
TBD: attach profile to basic blocks (add convertSampleData following
convertBranchData as example)

rafauler accepted this revision.Jan 3 2023, 12:39 PM
rafauler added inline comments.
bolt/test/X86/nolbr.s
29

fix tabs in your editor

This revision is now accepted and ready to land.Jan 3 2023, 12:39 PM
Amir updated this revision to Diff 486096.Jan 3 2023, 2:41 PM

Fix indenting in test

Amir marked an inline comment as done.Jan 3 2023, 2:42 PM
This revision was landed with ongoing or failed builds.Jan 3 2023, 2:43 PM
This revision was automatically updated to reflect the committed changes.