This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf][Correlate] Improve error messages
ClosedPublic

Authored by ellis on Jan 25 2022, 10:43 AM.

Details

Summary

Improve the error messages when using llvm-profdata to correlate profiles with debug info.

Diff Detail

Event Timeline

ellis created this revision.Jan 25 2022, 10:43 AM
ellis edited the summary of this revision. (Show Details)Jan 25 2022, 10:44 AM
ellis added reviewers: dblaikie, kyulee.
ellis retitled this revision from [InstrProf][correlation] Improve error messages to [InstrProf][Correlate] Improve error messages.Jan 25 2022, 3:41 PM

Tests are in the next diff D118181

ellis edited reviewers, added: phosek, davidxl; removed: dblaikie.Jan 25 2022, 3:45 PM
ellis published this revision for review.Jan 25 2022, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2022, 4:19 PM

This looks reasonable by sharing a common error message concatenated by the detailed reasons as needed instead of populating all the error cases.
Unless this violates coding convention with regard to error messages, it looks good to me. I'm approving it but want to hear other reviewers' opinions.

kyulee accepted this revision.Jan 26 2022, 12:08 AM
This revision is now accepted and ready to land.Jan 26 2022, 12:08 AM
phosek accepted this revision.Jan 26 2022, 12:26 AM

LGTM

This revision was landed with ongoing or failed builds.Jan 26 2022, 11:34 AM
This revision was automatically updated to reflect the committed changes.