diff options
author | Rong Xu <xur@google.com> | 2017-03-09 19:03:57 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2017-03-09 19:03:57 +0000 |
commit | 0cf1f56a8cc224b747ddad5be11aa3e68c1552da (patch) | |
tree | 535b26c05f6f5d1c3ca168f8058c83bf4e5c626a /llvm/test/tools/llvm-profdata/value-prof.proftext | |
parent | cc367347692941a7aa59f2ef626dfc0075e50e23 (diff) | |
download | bcm5719-llvm-0cf1f56a8cc224b747ddad5be11aa3e68c1552da.tar.gz bcm5719-llvm-0cf1f56a8cc224b747ddad5be11aa3e68c1552da.zip |
[PGO] Refactor profile dumping function for ease of adding other profile kind
Refactor the dumping function so that we can add other value profile kind easily.
Differential Revision: https://reviews.llvm.org/D30752
llvm-svn: 297399
Diffstat (limited to 'llvm/test/tools/llvm-profdata/value-prof.proftext')
-rw-r--r-- | llvm/test/tools/llvm-profdata/value-prof.proftext | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/tools/llvm-profdata/value-prof.proftext b/llvm/test/tools/llvm-profdata/value-prof.proftext index e35efbfa003..31a7698895d 100644 --- a/llvm/test/tools/llvm-profdata/value-prof.proftext +++ b/llvm/test/tools/llvm-profdata/value-prof.proftext @@ -46,13 +46,13 @@ foo2:1000 foo2:20000 #ICTXT: Indirect Call Site Count: 3 -#ICTXT-NEXT: Indirect Target Results: +#ICTXT-NEXT: Indirect Target Results: #ICTXT-NEXT: [ 1, foo, 100 ] #ICTXT-NEXT: [ 1, foo2, 1000 ] #ICTXT-NEXT: [ 2, foo2, 20000 ] #IC: Indirect Call Site Count: 3 -#IC-NEXT: Indirect Target Results: +#IC-NEXT: Indirect Target Results: #IC-NEXT: [ 1, foo2, 1000 ] #IC-NEXT: [ 1, foo, 100 ] #IC-NEXT: [ 2, foo2, 20000 ] @@ -72,10 +72,10 @@ bar 999000 359800 -#ICSUM: Total Number of Indirect Call Sites : 3 -#ICSUM: Total Number of Sites With Values : 2 -#ICSUM: Total Number of Profiled Values : 3 +#ICSUM: Statistics for indirect call sites profile: +#ICSUM: Total number of sites: 3 +#ICSUM: Total number of sites with values: 2 +#ICSUM: Total number of profiled values: 3 #ICSUM: NumTargets, SiteCount -#ICSUM 1, 1 -#ICSUM 2, 1 - +#ICSUM 1, 1 +#ICSUM 2, 1 |