[llvm] r254572 - [PGO] Add v2 format compatibility test
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 17:05:31 PST 2015
Author: davidxl
Date: Wed Dec 2 19:05:31 2015
New Revision: 254572
URL: http://llvm.org/viewvc/llvm-project?rev=254572&view=rev
Log:
[PGO] Add v2 format compatibility test
Added:
llvm/trunk/test/tools/llvm-profdata/Inputs/compat.profdata.v2 (with props)
Modified:
llvm/trunk/test/tools/llvm-profdata/compat.proftext
Added: llvm/trunk/test/tools/llvm-profdata/Inputs/compat.profdata.v2
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-profdata/Inputs/compat.profdata.v2?rev=254572&view=auto
==============================================================================
Binary file - no diff available.
Propchange: llvm/trunk/test/tools/llvm-profdata/Inputs/compat.profdata.v2
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: llvm/trunk/test/tools/llvm-profdata/compat.proftext
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-profdata/compat.proftext?rev=254572&r1=254571&r2=254572&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-profdata/compat.proftext (original)
+++ llvm/trunk/test/tools/llvm-profdata/compat.proftext Wed Dec 2 19:05:31 2015
@@ -45,3 +45,23 @@ large_numbers
# SUMMARY: Total functions: 3
# SUMMARY: Maximum function count: 2305843009213693952
# SUMMARY: Maximum internal block count: 1152921504606846976
+
+# RUN: llvm-profdata show %S/Inputs/compat.profdata.v2 -all-functions --counts | FileCheck %s -check-prefix=FORMATV2
+
+# FORMATV2: Counters:
+# FORMATV2-NEXT: foo:
+# FORMATV2-NEXT: Hash: 0x000000000000000a
+# FORMATV2-NEXT: Counters: 2
+# FORMATV2-NEXT: Function count: 499500
+# FORMATV2-NEXT: Block counts: [179900]
+# FORMATV2-NEXT: main:
+# FORMATV2-NEXT: Hash: 0x000000000000410a
+# FORMATV2-NEXT: Counters: 4
+# FORMATV2-NEXT: Function count: 1
+# FORMATV2-NEXT: Block counts: [1000, 1000000, 499500]
+# FORMATV2-NEXT: Functions shown: 2
+# FORMATV2-NEXT: Total functions: 2
+# FORMATV2-NEXT: Maximum function count: 499500
+# FORMATV2-NEXT: Maximum internal block count: 1000000
+
+
More information about the llvm-commits
mailing list