summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SampleProfile
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2015-09-30 00:42:46 +0000
committerDehao Chen <dehao@google.com>2015-09-30 00:42:46 +0000
commit6722688eaa8183299b687323531370e3d7d7b749 (patch)
tree2a78f9de7fe7ede159f192d68e2a85b4e65cf7f4 /llvm/test/Transforms/SampleProfile
parent8ddfa812af9178eae8c8d4403f0c36ed05f76747 (diff)
downloadbcm5719-llvm-6722688eaa8183299b687323531370e3d7d7b749.tar.gz
bcm5719-llvm-6722688eaa8183299b687323531370e3d7d7b749.zip
http://reviews.llvm.org/D13145
Support hierarachical sample profile format. llvm-svn: 248865
Diffstat (limited to 'llvm/test/Transforms/SampleProfile')
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof2
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof4
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/bad_mangle.prof4
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof4
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/bad_samples.prof2
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/branch.prof14
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/calls.prof16
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/discriminator.prof14
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof4
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/fnptr.prof18
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/propagate.prof32
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/syntax.prof4
12 files changed, 59 insertions, 59 deletions
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof b/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof
index cc7f0d4f277..30e26cc8184 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof
@@ -1,2 +1,2 @@
empty:100:0
-1.-3: 10
+ 1.-3: 10
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof b/llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof
index abcb0ba3841..62227746655 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof
@@ -1,3 +1,3 @@
3empty:100:BAD
-0: 0
-1: 100
+ 0: 0
+ 1: 100
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/bad_mangle.prof b/llvm/test/Transforms/SampleProfile/Inputs/bad_mangle.prof
index 50fe86119b7..33b4c42cab4 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/bad_mangle.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/bad_mangle.prof
@@ -1,3 +1,3 @@
double convert<std::string, float>(float):2909472:181842
-0: 181842
-1: 181842
+ 0: 181842
+ 1: 181842
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof b/llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof
index 038c45f77e3..608affa3ff9 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof
@@ -1,3 +1,3 @@
empty:100:0
-0: 0
-1: BAD
+ 0: 0
+ 1: BAD
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/bad_samples.prof b/llvm/test/Transforms/SampleProfile/Inputs/bad_samples.prof
index a121d8c1ac4..bce7db9708d 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/bad_samples.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/bad_samples.prof
@@ -1,2 +1,2 @@
empty:100:0
-1.3: -10
+ 1.3: -10
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/branch.prof b/llvm/test/Transforms/SampleProfile/Inputs/branch.prof
index cd1cb5b1f16..5977a386c7e 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/branch.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/branch.prof
@@ -1,8 +1,8 @@
main:15680:0
-0: 0
-4: 0
-7: 0
-9: 10226
-10: 2243
-16: 0
-18: 0
+ 0: 0
+ 4: 0
+ 7: 0
+ 9: 10226
+ 10: 2243
+ 16: 0
+ 18: 0
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/calls.prof b/llvm/test/Transforms/SampleProfile/Inputs/calls.prof
index 57d3887dfb6..be64a1ead42 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/calls.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/calls.prof
@@ -1,10 +1,10 @@
_Z3sumii:105580:5279
-0: 5279
-1: 5279
-2: 5279
+ 0: 5279
+ 1: 5279
+ 2: 5279
main:225715:0
-2.1: 5553
-3: 5391
-# This indicates that at line 3 of this function, the 'then' branch
-# of the conditional is taken (discriminator '1').
-3.1: 5752 _Z3sumii:5860
+ 2.1: 5553
+ 3: 5391
+ # This indicates that at line 3 of this function, the 'then' branch
+ # of the conditional is taken (discriminator '1').
+ 3.1: 5752 _Z3sumii:5860
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/discriminator.prof b/llvm/test/Transforms/SampleProfile/Inputs/discriminator.prof
index a6bcbc511a1..0c2561d725c 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/discriminator.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/discriminator.prof
@@ -1,8 +1,8 @@
foo:1000:0
-1: 1
-2: 1
-2.1: 100
-3: 100
-3.1: 5
-4: 100
-5: 1
+ 1: 1
+ 2: 1
+ 2.1: 100
+ 3: 100
+ 3.1: 5
+ 4: 100
+ 5: 1
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof b/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof
index 5c2172b5a4d..95addc9f7a1 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/entry_counts.prof
@@ -1,3 +1,3 @@
empty:100:13293
-0: 0
-1: 100
+ 0: 0
+ 1: 100
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/fnptr.prof b/llvm/test/Transforms/SampleProfile/Inputs/fnptr.prof
index 6a3b4e2315b..2491c427393 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/fnptr.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/fnptr.prof
@@ -1,12 +1,12 @@
_Z3fooi:7711:610
-1: 610
+ 1: 610
_Z3bari:20301:1437
-1: 1437
+ 1: 1437
main:184019:0
-4: 534
-6: 2080
-9: 2064 _Z3bari:1471 _Z3fooi:631
-5.1: 1075
-5: 1075
-7: 534
-4.2: 534
+ 4: 534
+ 6: 2080
+ 9: 2064 _Z3bari:1471 _Z3fooi:631
+ 5.1: 1075
+ 5: 1075
+ 7: 534
+ 4.2: 534
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/propagate.prof b/llvm/test/Transforms/SampleProfile/Inputs/propagate.prof
index b28609be66c..715321a4611 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/propagate.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/propagate.prof
@@ -1,17 +1,17 @@
_Z3fooiil:58139:0
-0: 0
-1: 0
-2: 0
-4: 1
-5: 10
-6: 0
-7: 5
-8: 3
-9: 0
-10: 0
-11: 6339
-12: 16191
-13: 8141
-16: 1
-18: 0
-19: 0
+ 0: 0
+ 1: 0
+ 2: 0
+ 4: 1
+ 5: 10
+ 6: 0
+ 7: 5
+ 8: 3
+ 9: 0
+ 10: 0
+ 11: 6339
+ 12: 16191
+ 13: 8141
+ 16: 1
+ 18: 0
+ 19: 0
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/syntax.prof b/llvm/test/Transforms/SampleProfile/Inputs/syntax.prof
index f3738912a9d..465212d86e8 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/syntax.prof
+++ b/llvm/test/Transforms/SampleProfile/Inputs/syntax.prof
@@ -1,3 +1,3 @@
empty:100:0
-0: 0
-1: 100
+ 0: 0
+ 1: 100
OpenPOWER on IntegriCloud