This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Add memcmp/bcmp size value profiling.
ClosedPublic

Authored by hjyamauchi on May 11 2020, 3:55 PM.

Details

Summary

This adds support for memcmp/bcmp to the existing memcpy/memset value profiling.

Diff Detail

Event Timeline

hjyamauchi created this revision.May 11 2020, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2020, 3:55 PM
Herald added a subscriber: hiraditya. · View Herald Transcript

Applied clang-format.

davidxl added inline comments.May 19 2020, 10:24 AM
llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
98

make it default to false for the first patch?

204

why 'getShortName' ? There does not seem be a need for 'long name'.

hjyamauchi marked 4 inline comments as done.

Address comments.

llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
98

Done.

204

Done.

davidxl accepted this revision.May 26 2020, 8:37 AM

lgtm

This revision is now accepted and ready to land.May 26 2020, 8:37 AM
This revision was automatically updated to reflect the committed changes.