This is an archive of the discontinued LLVM Phabricator instance.

[Profile]: make 'no profile data' warning off by default
ClosedPublic

Authored by davidxl on Aug 8 2016, 10:03 PM.

Details

Summary

With any large project, it is very common that many modules in static archive never get linked in the the final instrumented executable, thus functions defined in those modules won't have profile data collected. As a result, during profile-use compilation, we will end up getting tons of 'no profile data available for function ...' warnings which is not useful at all. A better way to handle this is to enhance profile runtime to record the modules that are linked in (at the cost of slightly increased profile size)

This patch makes the emission of such warnings off by default.

Diff Detail

Repository
rL LLVM

Event Timeline

davidxl updated this revision to Diff 67284.Aug 8 2016, 10:03 PM
davidxl retitled this revision from to [Profile]: make 'no profile data' warning off by default.
davidxl updated this object.
davidxl added reviewers: xur, silvas.
davidxl added a subscriber: llvm-commits.
silvas accepted this revision.Aug 8 2016, 10:54 PM
silvas edited edge metadata.

LGTM.

I think this is the last item from "The state of IRPGO (3 remaining work items)"! Thanks!

This revision is now accepted and ready to land.Aug 8 2016, 10:54 PM
This revision was automatically updated to reflect the committed changes.