[PGO] Make the number of records for each value site metada adjustable
authorRong Xu <xur@google.com>
Wed, 10 Feb 2016 22:19:43 +0000 (22:19 +0000)
committerRong Xu <xur@google.com>
Wed, 10 Feb 2016 22:19:43 +0000 (22:19 +0000)
commit69683f13d27fdfe88c850721938f6a2c2b9d92e2
treeac1d921ff6ff2196c10684aaba72e02baa753e00
parent8fab56e0dcf48d545a8aae1eae90b4f3d3f2231b
[PGO] Make the number of records for each value site metada adjustable

The patch adds a parameter in annotateValueSite() to control the max number
of records written to the value profile meta data for each value site. The
default is kept as the current value of 3.

Differential Revision: http://reviews.llvm.org/D17084

llvm-svn: 260450
llvm/include/llvm/ProfileData/InstrProf.h
llvm/lib/ProfileData/InstrProf.cpp
llvm/unittests/ProfileData/InstrProfTest.cpp