This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf] Fix debug-info-correlate test
ClosedPublic

Authored by ellis on Aug 10 2023, 5:04 PM.

Details

Summary

The llvm-profdata show command is not sufficient to check that two
profiles are identical because it doesn't show the counter values. Add
the flags --all-functions --counts so that counter values are checked.

This was changed in https://reviews.llvm.org/D135929 but I failed to
remember that counter values were not printed by default.

Diff Detail

Event Timeline

ellis created this revision.Aug 10 2023, 5:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2023, 5:04 PM
Herald added a subscriber: Enna1. · View Herald Transcript
ellis requested review of this revision.Aug 10 2023, 5:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2023, 5:04 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
MaskRay accepted this revision.Aug 10 2023, 9:42 PM
This revision is now accepted and ready to land.Aug 10 2023, 9:42 PM

I noticed that the profdata files are compared with just diff in compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c. Can we do the same here?

ellis updated this revision to Diff 549435.Aug 11 2023, 9:17 AM

Update the Darwin test too

This revision was landed with ongoing or failed builds.Aug 11 2023, 9:20 AM
This revision was automatically updated to reflect the committed changes.