summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-profdata
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2015-10-08 01:17:26 +0000
committerDiego Novillo <dnovillo@google.com>2015-10-08 01:17:26 +0000
commita082040deddc5760c728f61c3f6d9809631512ba (patch)
tree9aa1d1cd23d16835bd6855a9c149320f552869c9 /llvm/test/tools/llvm-profdata
parent129552b3757fa15f5e2f8ead1b1e24684f183574 (diff)
downloadbcm5719-llvm-a082040deddc5760c728f61c3f6d9809631512ba.tar.gz
bcm5719-llvm-a082040deddc5760c728f61c3f6d9809631512ba.zip
Revert "Handle inline stacks in gcov-encoded sample profiles."
This reverts commit r249644. The buildbots are failing the new test I added. Investigating. llvm-svn: 249648
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
-rw-r--r--llvm/test/tools/llvm-profdata/Inputs/gcc-sample-profile.gcovbin1960 -> 0 bytes
-rw-r--r--llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test24
2 files changed, 0 insertions, 24 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/gcc-sample-profile.gcov b/llvm/test/tools/llvm-profdata/Inputs/gcc-sample-profile.gcov
deleted file mode 100644
index 0099280af2f..00000000000
--- a/llvm/test/tools/llvm-profdata/Inputs/gcc-sample-profile.gcov
+++ /dev/null
Binary files differ
diff --git a/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test b/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test
deleted file mode 100644
index 5d9c30f9fd6..00000000000
--- a/llvm/test/tools/llvm-profdata/gcc-gcov-sample-profile.test
+++ /dev/null
@@ -1,24 +0,0 @@
-Tests for sample profiles encoded in GCC's gcov format.
-
-1- Show all functions. This profile has a single main() function with several
- inlined callees.
-RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov | FileCheck %s --check-prefix=SHOW1
-SHOW1: Function: main: 364084, 0, 6 sampled lines
-SHOW1: line offset: 2, discriminator: 3, inlined callee: _Z3fool: 243786, 0, 3 sampled lines
-SHOW1: line offset: 1, discriminator: 3, inlined callee: _Z3bari: 0, 0, 2 sampled lines
-SHOW1: line offset: 1, discriminator: 8, inlined callee: _Z3bari: 0, 0, 2 sampled lines
-SHOW1: line offset: 1, discriminator: 7, inlined callee: _Z3bari: 98558, 0, 2 sampled lines
-
-2- Convert the profile to text encoding and check that they are both
- identical.
-RUN: llvm-profdata merge --sample %p/Inputs/gcc-sample-profile.gcov --text -o - | llvm-profdata show --sample - -o %t-text
-RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
-RUN: diff %t-text %t-gcov
-
-4- Merge the gcov and text encodings of the profile and check that the
- counters have doubled.
-RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
-RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov %t-gcov -o - | FileCheck %s --check-prefix=MERGE1
-MERGE1: main:728168:0
-MERGE1: 2.3: 120298
-MERGE1: 2.3: _Z3fool:487572
OpenPOWER on IntegriCloud