File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
compiler-rt/test/profile/Linux Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: lld-available
2
2
/// Test ld with GC.
3
3
4
- // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -fuse-ld=lld -ffunction-sections -fdata-sections -Wl,--gc-sections -z start-stop-gc
4
+ // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -no-pie - fuse-ld=lld -ffunction-sections -fdata-sections -Wl,--gc-sections -z start-stop-gc
5
5
// RUN: rm -rf %t.profdir
6
6
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
7
7
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
Original file line number Diff line number Diff line change 1
- // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c
1
+ /// Without PIE function addresses are the same across runs and their value
2
+ /// sites can be merged, matching the test.
3
+ // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -no-pie
2
4
// RUN: rm -rf %t.profdir
3
5
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
4
6
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
9
11
10
12
/// -z start-stop-gc requires binutils 2.37. Don't test the option for now.
11
13
/// TODO: Add -Wl,--gc-sections.
12
- // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -fuse-ld=bfd -ffunction-sections -fdata-sections
14
+ // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -no-pie - fuse-ld=bfd -ffunction-sections -fdata-sections
13
15
// RUN: rm -rf %t.profdir
14
16
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
15
17
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
18
20
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t 1
19
21
// RUN: llvm-profdata show -counts -function=main -ic-targets -memop-sizes %t.profdir/default_*.profraw | FileCheck %S/Inputs/instrprof-value-merge.c
20
22
21
- // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -fuse-ld=gold -ffunction-sections -fdata-sections
23
+ // RUN: %clang_pgogen -o %t -O3 %S/Inputs/instrprof-value-merge.c -no-pie - fuse-ld=gold -ffunction-sections -fdata-sections
22
24
// RUN: rm -rf %t.profdir
23
25
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
24
26
// RUN: env LLVM_PROFILE_FILE=%t.profdir/default_%m.profraw %run %t
You can’t perform that action at this time.
0 commit comments