This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Improve hash-mismatch warning message
ClosedPublic

Authored by xur on Jul 1 2022, 9:48 AM.

Details

Summary

This patch improves FDO hash-mismatch handling:
(1) filter out warnings to weak functions.
Weak functions definition will be overridden by a strong definition by linker.
The hash mismatch in profile use compilation is expected.
Make the profile hash mismatch warning under the existing option (default true).

(2) add an option to trace the hash of functions with the specific string.
Note that an empty string parameter will trace all functions.

Diff Detail

Event Timeline

xur created this revision.Jul 1 2022, 9:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2022, 9:48 AM
xur requested review of this revision.Jul 1 2022, 9:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2022, 9:48 AM
davidxl accepted this revision.Jul 1 2022, 10:41 AM

lgtm

This revision is now accepted and ready to land.Jul 1 2022, 10:41 AM
This revision was landed with ongoing or failed builds.Jul 15 2022, 1:55 PM
This revision was automatically updated to reflect the committed changes.