Skip to content

Commit ad9f6d3

Browse files
authored
[PGO][Offload] Use %profdata in PGO tests (#135015)
So that the wrong llvm-profdata is not picked up from PATH.
1 parent 54cdc75 commit ad9f6d3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

offload/test/offloading/gpupgo/pgo1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// RUN: -Xarch_device -fprofile-generate
33
// RUN: env LLVM_PROFILE_FILE=%basename_t.llvm.profraw \
44
// RUN: %libomptarget-run-generic 2>&1
5-
// RUN: llvm-profdata show --all-functions --counts \
5+
// RUN: %profdata show --all-functions --counts \
66
// RUN: %target_triple.%basename_t.llvm.profraw | \
77
// RUN: %fcheck-generic --check-prefix="LLVM-PGO"
88

99
// RUN: %libomptarget-compile-generic -fcreate-profile \
1010
// RUN: -Xarch_device -fprofile-instr-generate
1111
// RUN: env LLVM_PROFILE_FILE=%basename_t.clang.profraw \
1212
// RUN: %libomptarget-run-generic 2>&1
13-
// RUN: llvm-profdata show --all-functions --counts \
13+
// RUN: %profdata show --all-functions --counts \
1414
// RUN: %target_triple.%basename_t.clang.profraw | \
1515
// RUN: %fcheck-generic --check-prefix="CLANG-PGO"
1616

offload/test/offloading/gpupgo/pgo2.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
// RUN: %libomptarget-compile-generic -fprofile-generate
22
// RUN: env LLVM_PROFILE_FILE=%basename_t.llvm.profraw \
33
// RUN: %libomptarget-run-generic 2>&1
4-
// RUN: llvm-profdata show --all-functions --counts \
4+
// RUN: %profdata show --all-functions --counts \
55
// RUN: %basename_t.llvm.profraw | %fcheck-generic \
66
// RUN: --check-prefix="LLVM-HOST"
7-
// RUN: llvm-profdata show --all-functions --counts \
7+
// RUN: %profdata show --all-functions --counts \
88
// RUN: %target_triple.%basename_t.llvm.profraw \
99
// RUN: | %fcheck-generic --check-prefix="LLVM-DEVICE"
1010

1111
// RUN: %libomptarget-compile-generic -fprofile-instr-generate
1212
// RUN: env LLVM_PROFILE_FILE=%basename_t.clang.profraw \
1313
// RUN: %libomptarget-run-generic 2>&1
14-
// RUN: llvm-profdata show --all-functions --counts \
14+
// RUN: %profdata show --all-functions --counts \
1515
// RUN: %basename_t.clang.profraw | %fcheck-generic \
1616
// RUN: --check-prefix="CLANG-HOST"
17-
// RUN: llvm-profdata show --all-functions --counts \
17+
// RUN: %profdata show --all-functions --counts \
1818
// RUN: %target_triple.%basename_t.clang.profraw | \
1919
// RUN: %fcheck-generic --check-prefix="CLANG-DEV"
2020

2121
// RUN: %libomptarget-compile-generic -Xarch_host -fprofile-generate
2222
// RUN: env LLVM_PROFILE_FILE=%basename_t.nogpu.profraw \
2323
// RUN: %libomptarget-run-generic 2>&1
24-
// RUN: llvm-profdata show --all-functions --counts \
24+
// RUN: %profdata show --all-functions --counts \
2525
// RUN: %basename_t.nogpu.profraw | %fcheck-generic \
2626
// RUN: --check-prefix="LLVM-HOST"
2727
// RUN: not test -e %target_triple.%basename_t.nogpu.profraw
@@ -30,21 +30,21 @@
3030
// RUN: -Xarch_device -fprofile-instr-generate
3131
// RUN: env LLVM_PROFILE_FILE=%basename_t.hidf.profraw \
3232
// RUN: %libomptarget-run-generic 2>&1
33-
// RUN: llvm-profdata show --all-functions --counts \
33+
// RUN: %profdata show --all-functions --counts \
3434
// RUN: %basename_t.hidf.profraw | %fcheck-generic \
3535
// RUN: --check-prefix="LLVM-HOST"
36-
// RUN: llvm-profdata show --all-functions --counts \
36+
// RUN: %profdata show --all-functions --counts \
3737
// RUN: %target_triple.%basename_t.hidf.profraw \
3838
// RUN: | %fcheck-generic --check-prefix="CLANG-DEV"
3939

4040
// RUN: %libomptarget-compile-generic -Xarch_device -fprofile-generate \
4141
// RUN: -Xarch_host -fprofile-instr-generate
4242
// RUN: env LLVM_PROFILE_FILE=%basename_t.hfdi.profraw \
4343
// RUN: %libomptarget-run-generic 2>&1
44-
// RUN: llvm-profdata show --all-functions --counts \
44+
// RUN: %profdata show --all-functions --counts \
4545
// RUN: %basename_t.hfdi.profraw | %fcheck-generic \
4646
// RUN: --check-prefix="CLANG-HOST"
47-
// RUN: llvm-profdata show --all-functions --counts \
47+
// RUN: %profdata show --all-functions --counts \
4848
// RUN: %target_triple.%basename_t.hfdi.profraw \
4949
// RUN: | %fcheck-generic --check-prefix="LLVM-DEVICE"
5050

0 commit comments

Comments
 (0)