Skip to content

Commit 345f1a5

Browse files
committed
Revert "[profile] Use fprofile-continuous in compiler-rt tests (llvm#126617)"
This reverts most of commit f83726e.
1 parent 8d78b7c commit 345f1a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler-rt/test/profile/ContinuousSyncMode/online-merging-windows.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
// RUN: rm -rf %t.dir && split-file %s %t.dir && cd %t.dir
1111
//
1212
// Create two DLLs and a driver program that uses them.
13-
// RUN: %clang_pgogen=%t.dir/profdir -fprofile-continuous -fprofile-update=atomic foo.c -fuse-ld=lld -Wl,-dll -o %t.dir/foo.dll
14-
// RUN: %clang_pgogen=%t.dir/profdir -fprofile-continuous -fprofile-update=atomic bar.c -fuse-ld=lld -Wl,-dll -o %t.dir/bar.dll
15-
// RUN: %clang_pgogen=%t.dir/profdir -fprofile-continuous -fprofile-update=atomic main.c -o main.exe %t.dir/foo.lib %t.dir/bar.lib -fuse-ld=lld
13+
// RUN: %clang_pgogen foo.c -mllvm -instrprof-atomic-counter-update-all=1 -fuse-ld=lld -Wl,-dll -o %t.dir/foo.dll
14+
// RUN: %clang_pgogen bar.c -mllvm -instrprof-atomic-counter-update-all=1 -fuse-ld=lld -Wl,-dll -o %t.dir/bar.dll
15+
// RUN: %clang_pgogen main.c -o main.exe %t.dir/foo.lib %t.dir/bar.lib -mllvm -instrprof-atomic-counter-update-all=1 -fuse-ld=lld
1616
//
1717
// === Round 1 ===
1818
// Test merging+continuous mode without any file contention.
1919
//
20-
// RUN: %run %t.dir/main.exe nospawn
20+
// RUN: env LLVM_PROFILE_FILE="%t.dir/profdir/%m%c.profraw" %run %t.dir/main.exe nospawn
2121
// RUN: llvm-profdata merge -o %t.profdata %t.dir/profdir
2222
// RUN: llvm-profdata show --counts --all-functions %t.profdata | FileCheck %s -check-prefix=ROUND1
2323

@@ -37,7 +37,7 @@
3737
// === Round 2 ===
3838
// Test merging+continuous mode with some file contention.
3939
//
40-
// RUN: %run %t.dir/main.exe spawn
40+
// RUN: env LLVM_PROFILE_FILE="%t.dir/profdir/%m%c.profraw" %run %t.dir/main.exe spawn
4141
// RUN: llvm-profdata merge -o %t.profdata %t.dir/profdir
4242
// RUN: llvm-profdata show --counts --all-functions %t.profdata | FileCheck %s -check-prefix=ROUND2
4343

0 commit comments

Comments
 (0)