This is an archive of the discontinued LLVM Phabricator instance.

[Try2][InstrProf] Add Correlator class to read debug info
ClosedPublic

Authored by ellis on Dec 16 2021, 4:47 PM.

Details

Summary

Extend llvm-profdata to read in a .proflite file and also a debug info file to generate a normal .profdata profile. This reduces the binary size by 8.4% when building an instrumented Clang binary without value profiling (164 MB vs 179 MB).

This work is part of the "lightweight instrumentation" RFC: https://groups.google.com/g/llvm-dev/c/r03Z6JoN7d4

This was first landed in https://reviews.llvm.org/D114566 but had to be reverted due to build errors.

Diff Detail

Event Timeline

ellis created this revision.Dec 16 2021, 4:47 PM
ellis updated this revision to Diff 395155.Dec 17 2021, 9:42 AM

Add namespace llvm { around template specialization to see if that will fix the build error.

ellis published this revision for review.Dec 17 2021, 9:44 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 17 2021, 9:44 AM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
kyulee accepted this revision.Dec 17 2021, 9:45 AM
This revision is now accepted and ready to land.Dec 17 2021, 9:45 AM
This revision was landed with ongoing or failed builds.Dec 17 2021, 10:46 AM
This revision was automatically updated to reflect the committed changes.