[PGO] Add memcmp/bcmp size value profiling.
commit106ec64fbc7fb5ef28d0368fb1dca18e67e75adf
authorHiroshi Yamauchi <yamauchi@google.com>
Tue, 4 Feb 2020 23:19:33 +0000 (4 15:19 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Tue, 26 May 2020 17:28:04 +0000 (26 10:28 -0700)
tree0eccd746f6a64e8a1154406071ec46023b5151b8
parenta0ce2338a0838ccb04e10bd4f8e9ec9d7136e1d2
[PGO] Add memcmp/bcmp size value profiling.

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

Reviewers: davidxl

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79751
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
llvm/lib/Transforms/Instrumentation/ValueProfileCollector.cpp
llvm/lib/Transforms/Instrumentation/ValueProfileCollector.h
llvm/lib/Transforms/Instrumentation/ValueProfilePlugins.inc
llvm/test/Transforms/PGOProfile/Inputs/memop_size_annotation.proftext
llvm/test/Transforms/PGOProfile/memop_size_annotation.ll
llvm/test/Transforms/PGOProfile/memop_size_opt.ll