diff options
author | Manman Ren <manman.ren@gmail.com> | 2019-03-05 01:21:40 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2019-03-05 01:21:40 +0000 |
commit | f4bdc161222c5769fb0e2a5b6e9fb24962d1e08f (patch) | |
tree | 6308fe213e06ac2686dfc279296d681559847e77 /test/profile | |
parent | 229545b10452bb1e81f76494a2e77e031fcc91f4 (diff) | |
download | compiler-rt-f4bdc161222c5769fb0e2a5b6e9fb24962d1e08f.tar.gz |
Revert compiler-rt diffs for order file instrumentation to get bot green!
This caused issues on Linux/Windows and other platforms.
r355343 355350 355350
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@355363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile')
-rw-r--r-- | test/profile/Inputs/instrprof-order-file-2.c | 7 | ||||
-rw-r--r-- | test/profile/Inputs/instrprof-order-file.c | 17 | ||||
-rw-r--r-- | test/profile/instrprof-order-file.test | 16 |
3 files changed, 0 insertions, 40 deletions
diff --git a/test/profile/Inputs/instrprof-order-file-2.c b/test/profile/Inputs/instrprof-order-file-2.c deleted file mode 100644 index ee4485756..000000000 --- a/test/profile/Inputs/instrprof-order-file-2.c +++ /dev/null @@ -1,7 +0,0 @@ -__attribute__((noinline)) int f(int a) { - return a + 1; -} - -__attribute__((noinline)) int g(int a) { - return a + 2; -} diff --git a/test/profile/Inputs/instrprof-order-file.c b/test/profile/Inputs/instrprof-order-file.c deleted file mode 100644 index 9251a8e25..000000000 --- a/test/profile/Inputs/instrprof-order-file.c +++ /dev/null @@ -1,17 +0,0 @@ -void __llvm_profile_initialize_file(void); -int __llvm_orderfile_dump(void); - -__attribute__((noinline)) int f(int a); - -__attribute__((noinline)) int g(int a); - -int main(int argc, const char *argv[]) { - int a = f(argc); - int t = 0; - for (int i = 0; i < argc; i++) - t += g(a); - f(t); - __llvm_profile_initialize_file(); - __llvm_orderfile_dump(); - return 0; -} diff --git a/test/profile/instrprof-order-file.test b/test/profile/instrprof-order-file.test deleted file mode 100644 index b1133a3e8..000000000 --- a/test/profile/instrprof-order-file.test +++ /dev/null @@ -1,16 +0,0 @@ -// UNSUPPORTED: windows -// RUN: rm -rf %t.dir && mkdir -p %t.dir -// RUN: cd %t.dir -// -// RUN: %clang -forder-file-instrumentation -O1 -o %t.2 %S/Inputs/instrprof-order-file-2.c %S/Inputs/instrprof-order-file.c -mllvm -orderfile-write-mapping="mapping.txt" -// RUN: %run %t.2 ANY -// RUN: od -h default.profraw.order | FileCheck %s -// RUN: cat mapping.txt | FileCheck %s --check-prefix=MAPPING - -// Make sure we have MD5 for main, then f, then g. -// CHECK: 0000000 d5fa e78d 6436 db95 a18f dd4c 4f75 cc91 -// CHECK: 0000020 f5b2 47ff 6643 b671 0000 0000 0000 0000 - -// MAPPING: MD5 cc914f75dd4ca18f f -// MAPPING: MD5 b671664347fff5b2 g -// MAPPING: MD5 db956436e78dd5fa main |