diff options
author | Xinliang David Li <davidxl@google.com> | 2016-03-29 21:53:08 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-03-29 21:53:08 +0000 |
commit | cdb0f791e5a251bb4bf021f0da8f644307b73871 (patch) | |
tree | b92779487fdf630928ec8131bbb05047ba855f51 /test | |
parent | 1a266ba95249e635f44b78edcede6444940ba17c (diff) |
Fix comment in test
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264792 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/profile/instrprof-value-prof.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/profile/instrprof-value-prof.c b/test/profile/instrprof-value-prof.c index f09e1ac43..111db0af1 100644 --- a/test/profile/instrprof-value-prof.c +++ b/test/profile/instrprof-value-prof.c @@ -90,9 +90,12 @@ int main(int argc, const char *argv[]) { qsort(CallerInfos, sizeof(CallerInfos) / sizeof(CallerInfo), sizeof(CallerInfo), cmpaddr); - /* We will synthesis value profile data for 128 callers functions. - * The number of * value sites. The number values for each value site - * ranges from 0 to 8. */ + /* We will synthesis value profile data for 128 callers functions declared. + * The number of value sites for each caller function is recorded in + * the NS field of the CallerInfo object. For each value site, the number of + * callee values is determined by the site index (modulo 8). The frequency + * of each callee target synthesized is equal to V + 1, in which V is the + * index of the target value for the callsite. */ Data = __llvm_profile_begin_data(); DataEnd = __llvm_profile_end_data(); |