[PGO] Guard the memcmp/bcmp size value profiling instrumentation behind flag.
authorHiroshi Yamauchi <yamauchi@google.com>
Wed, 27 May 2020 17:13:33 +0000 (10:13 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 28 May 2020 17:07:04 +0000 (10:07 -0700)
commitf0c2cfe4d044be26031acbf95471a4ac0bca5bf1
tree6439bcedb0857b8cba3cffe16d95edd23e21a69f
parent69ede516c7ff97c208d4a2378bb56ccaa242bbc1
[PGO] Guard the memcmp/bcmp size value profiling instrumentation behind flag.

Summary:
Follow up D79751 and put the instrumentation / value collection side (in
addition to the optimization side) behind the flag as well.

Reviewers: davidxl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80646
llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
llvm/lib/Transforms/Instrumentation/ValueProfilePlugins.inc
llvm/test/Transforms/PGOProfile/memop_size_annotation.ll