This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFC] Simplify preprocessProfile
ClosedPublic

Authored by Amir on Mar 13 2023, 5:02 PM.

Details

Reviewers
rafauler
maksfb
Group Reviewers
Restricted Project
Commits
rGc7af4f383df6: [BOLT][NFC] Simplify preprocessProfile
Summary

Move out prepareToParse lambda, generalize it to handle mem events perf process.

Diff Detail

Event Timeline

Amir created this revision.Mar 13 2023, 5:02 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Mar 13 2023, 5:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 5:02 PM
rafauler added inline comments.Mar 14 2023, 12:11 PM
bolt/lib/Profile/DataAggregator.cpp
525–528

I don't think this will be called, because we're calling "exit(1)" directly

Amir updated this revision to Diff 505342.Mar 14 2023, 6:02 PM

Revert deleteTempFiles change

Amir marked an inline comment as done.Mar 14 2023, 6:03 PM
Amir added inline comments.
bolt/lib/Profile/DataAggregator.cpp
525–528

You're right. Call to exit doesn't unwind stack and destructors are not called.

Amir marked an inline comment as done.Mar 14 2023, 6:03 PM
This revision is now accepted and ready to land.Mar 15 2023, 11:43 AM
This revision was automatically updated to reflect the committed changes.