This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Print target md5sum in missed optimization message
ClosedPublic

Authored by davidxl on Aug 23 2018, 3:46 PM.

Details

Summary

This is helpful for performance debugging. Ideally, the target name should be dumped, but creating instprof symtab for this purpose is expensive. A user can always use other ways to find the name (e.g, dumping the object symtab and compute the md5 hash for the mapping). The later can also be a feature added to llvm-profdata.

Diff Detail

Repository
rL LLVM

Event Timeline

davidxl created this revision.Aug 23 2018, 3:46 PM
xur accepted this revision.Aug 24 2018, 1:52 PM

Looks good to me.

test/Transforms/PGOProfile/icp_mismatch_msg.ll
5 ↗(On Diff #162285)

s/with/with md5sum/?

This revision is now accepted and ready to land.Aug 24 2018, 1:52 PM
davidxl marked an inline comment as done.Aug 24 2018, 2:37 PM
This revision was automatically updated to reflect the committed changes.