diff options
Diffstat (limited to 'test/Transforms/SampleProfile/Inputs')
22 files changed, 107 insertions, 59 deletions
diff --git a/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof b/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof index cc7f0d4f2773..30e26cc81841 100644 --- a/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof +++ b/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof @@ -1,2 +1,2 @@ empty:100:0 -1.-3: 10 + 1.-3: 10 diff --git a/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof b/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof index abcb0ba38415..62227746655e 100644 --- a/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof +++ b/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/test/Transforms/SampleProfile/Inputs/bad_mangle.prof b/test/Transforms/SampleProfile/Inputs/bad_mangle.prof index 50fe86119b71..33b4c42cab44 100644 --- a/test/Transforms/SampleProfile/Inputs/bad_mangle.prof +++ b/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/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof b/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof index 038c45f77e30..608affa3ff94 100644 --- a/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof +++ b/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/test/Transforms/SampleProfile/Inputs/bad_samples.prof b/test/Transforms/SampleProfile/Inputs/bad_samples.prof index a121d8c1ac40..bce7db9708d2 100644 --- a/test/Transforms/SampleProfile/Inputs/bad_samples.prof +++ b/test/Transforms/SampleProfile/Inputs/bad_samples.prof @@ -1,2 +1,2 @@ empty:100:0 -1.3: -10 + 1.3: -10 diff --git a/test/Transforms/SampleProfile/Inputs/branch.prof b/test/Transforms/SampleProfile/Inputs/branch.prof index cd1cb5b1f16b..ac958e325c40 100644 --- a/test/Transforms/SampleProfile/Inputs/branch.prof +++ b/test/Transforms/SampleProfile/Inputs/branch.prof @@ -1,8 +1,10 @@ main:15680:0 -0: 0 -4: 0 -7: 0 -9: 10226 -10: 2243 -16: 0 -18: 0 + 1: 2500 + 4: 1000 + 5: 1000 + 6: 800 + 7: 500 + 9: 10226 + 10: 2243 + 16: 0 + 18: 0 diff --git a/test/Transforms/SampleProfile/Inputs/calls.prof b/test/Transforms/SampleProfile/Inputs/calls.prof index 57d3887dfb65..be64a1ead428 100644 --- a/test/Transforms/SampleProfile/Inputs/calls.prof +++ b/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/test/Transforms/SampleProfile/Inputs/cov-zero-samples.prof b/test/Transforms/SampleProfile/Inputs/cov-zero-samples.prof new file mode 100644 index 000000000000..528e42ca3880 --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/cov-zero-samples.prof @@ -0,0 +1,10 @@ +main:20111403:0 + 2.1: 404065 + 3: 443089 + 3.1: 0 + 4: 404066 + 6: 0 + 7: 0 + 3.1: _Z12never_calledi:0 + 0: 0 + 1: 0 diff --git a/test/Transforms/SampleProfile/Inputs/coverage-warning.prof b/test/Transforms/SampleProfile/Inputs/coverage-warning.prof new file mode 100644 index 000000000000..57989b837a0f --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/coverage-warning.prof @@ -0,0 +1,5 @@ +foo:30000:100 + 2: 28000 + 3: 1000 +# This profile is stale. Function foo() does not have a line 8 anymore. + 8: 1700 diff --git a/test/Transforms/SampleProfile/Inputs/discriminator.prof b/test/Transforms/SampleProfile/Inputs/discriminator.prof index a6bcbc511a16..0c2561d725c3 100644 --- a/test/Transforms/SampleProfile/Inputs/discriminator.prof +++ b/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/test/Transforms/SampleProfile/Inputs/entry_counts.prof b/test/Transforms/SampleProfile/Inputs/entry_counts.prof index 5c2172b5a4d3..95addc9f7a11 100644 --- a/test/Transforms/SampleProfile/Inputs/entry_counts.prof +++ b/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/test/Transforms/SampleProfile/Inputs/fnptr.binprof b/test/Transforms/SampleProfile/Inputs/fnptr.binprof Binary files differindex 14d7fd555dae..a074f53db945 100644 --- a/test/Transforms/SampleProfile/Inputs/fnptr.binprof +++ b/test/Transforms/SampleProfile/Inputs/fnptr.binprof diff --git a/test/Transforms/SampleProfile/Inputs/fnptr.prof b/test/Transforms/SampleProfile/Inputs/fnptr.prof index 6a3b4e2315bb..2491c427393b 100644 --- a/test/Transforms/SampleProfile/Inputs/fnptr.prof +++ b/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/test/Transforms/SampleProfile/Inputs/gcc-simple.afdo b/test/Transforms/SampleProfile/Inputs/gcc-simple.afdo Binary files differnew file mode 100644 index 000000000000..93f22ce30533 --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/gcc-simple.afdo diff --git a/test/Transforms/SampleProfile/Inputs/inline-coverage.prof b/test/Transforms/SampleProfile/Inputs/inline-coverage.prof new file mode 100644 index 000000000000..3d792733149a --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/inline-coverage.prof @@ -0,0 +1,7 @@ +main:501438:0 + 2.1: 23478 + 3: 23478 + 4: 0 + 0: 0 + 3: _Z3fool:172746 + 1: 31878 diff --git a/test/Transforms/SampleProfile/Inputs/inline-hint.prof b/test/Transforms/SampleProfile/Inputs/inline-hint.prof new file mode 100644 index 000000000000..a6840346eb43 --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/inline-hint.prof @@ -0,0 +1,3 @@ +_Z6hot_fnRxi:700:0 +_Z7cold_fnRxi:1:0 +other:299:0 diff --git a/test/Transforms/SampleProfile/Inputs/inline.prof b/test/Transforms/SampleProfile/Inputs/inline.prof new file mode 100644 index 000000000000..386cdf8a7b5e --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/inline.prof @@ -0,0 +1,7 @@ +main:225715:0 + 2.1: 5553 + 3: 5391 + 3.1: _Z3sumii:5860 + 0: 5279 + 1: 5279 + 2: 5279 diff --git a/test/Transforms/SampleProfile/Inputs/nolocinfo.prof b/test/Transforms/SampleProfile/Inputs/nolocinfo.prof new file mode 100644 index 000000000000..fc69aa8ae783 --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/nolocinfo.prof @@ -0,0 +1,3 @@ +foo:30000:100 + 2: 28000 + 3: 1000 diff --git a/test/Transforms/SampleProfile/Inputs/offset.prof b/test/Transforms/SampleProfile/Inputs/offset.prof new file mode 100644 index 000000000000..b07ce3504fb2 --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/offset.prof @@ -0,0 +1,4 @@ +_Z3fooi:300:1 + 65532: 1000 + 65533: 10 + 65535: 990 diff --git a/test/Transforms/SampleProfile/Inputs/propagate.prof b/test/Transforms/SampleProfile/Inputs/propagate.prof index b28609be66c1..ee9c6d62dfd1 100644 --- a/test/Transforms/SampleProfile/Inputs/propagate.prof +++ b/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: 2 + 7: 5 + 8: 3 + 9: 0 + 10: 0 + 11: 6339 + 12: 16191 + 13: 8141 + 16: 1 + 18: 0 + 19: 0 diff --git a/test/Transforms/SampleProfile/Inputs/remarks.prof b/test/Transforms/SampleProfile/Inputs/remarks.prof new file mode 100644 index 000000000000..1e905834cf41 --- /dev/null +++ b/test/Transforms/SampleProfile/Inputs/remarks.prof @@ -0,0 +1,7 @@ +main:623868:0 + 0: 0 + 0: _Z3foov:623868 + 3: 18346 + 4: 0 + 6: 19475 + 2: 18305 diff --git a/test/Transforms/SampleProfile/Inputs/syntax.prof b/test/Transforms/SampleProfile/Inputs/syntax.prof index f3738912a9dc..465212d86e84 100644 --- a/test/Transforms/SampleProfile/Inputs/syntax.prof +++ b/test/Transforms/SampleProfile/Inputs/syntax.prof @@ -1,3 +1,3 @@ empty:100:0 -0: 0 -1: 100 + 0: 0 + 1: 100 |
