Skip to content

Commit defe934

Browse files
authored
[InstrProf][NFC] Use -profile-correlate flag in tests (#163299)
Back in #69493 the `-debug-info-correlate` LLVM flag was deprecated in favor of `-profile-correlate=debug-info`. Update all tests to use this new flag.
1 parent 585b6e2 commit defe934

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Value profiling is currently not supported in lightweight mode.
2-
// RUN: %clang_pgogen -o %t -g -mllvm --debug-info-correlate -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
2+
// RUN: %clang_pgogen -o %t -g -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
33
// RUN: env LLVM_PROFILE_FILE=%t.proflite %run %t
44
// RUN: llvm-profdata merge -o %t.profdata --debug-info=%t.dSYM %t.proflite
55

@@ -9,7 +9,7 @@
99

1010
// RUN: diff <(llvm-profdata show --all-functions --counts %t.normal.profdata) <(llvm-profdata show --all-functions --counts %t.profdata)
1111

12-
// RUN: %clang_pgogen -o %t.cov -g -mllvm --debug-info-correlate -mllvm -pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
12+
// RUN: %clang_pgogen -o %t.cov -g -mllvm --profile-correlate=debug-info -mllvm -pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
1313
// RUN: env LLVM_PROFILE_FILE=%t.cov.proflite %run %t.cov
1414
// RUN: llvm-profdata merge -o %t.cov.profdata --debug-info=%t.cov.dSYM %t.cov.proflite
1515

compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-debuginfod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: llvm-profdata merge -o %t.default.profdata %t.profraw
88

99
// Build with profile debuginfo correlation.
10-
// RUN: %clang_pgogen -o %t.correlate.exe -Wl,--build-id=0x12345678 -g -gdwarf-4 -mllvm --debug-info-correlate -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
10+
// RUN: %clang_pgogen -o %t.correlate.exe -Wl,--build-id=0x12345678 -g -gdwarf-4 -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
1111
// RUN: env LLVM_PROFILE_FILE=%t.debug-info-correlate.proflite %run %t.correlate.exe
1212

1313
// Test llvm-profdata merge profile correlation with --debuginfod option.

compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.normal
44
// RUN: llvm-profdata merge -o %t.normal.profdata %t.profraw
55

6-
// RUN: %clang_pgogen -o %t.d4 -g -gdwarf-4 -mllvm --debug-info-correlate -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
6+
// RUN: %clang_pgogen -o %t.d4 -g -gdwarf-4 -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
77
// RUN: env LLVM_PROFILE_FILE=%t.d4.proflite %run %t.d4
88
// RUN: llvm-profdata merge -o %t.d4.profdata --debug-info=%t.d4 %t.d4.proflite
99

1010
// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal.dump
1111
// RUN: llvm-profdata show --all-functions --counts %t.d4.profdata > %t.d4.dump
1212
// RUN: diff %t.normal.dump %t.d4.dump
1313

14-
// RUN: %clang_pgogen -o %t -g -mllvm --debug-info-correlate -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
14+
// RUN: %clang_pgogen -o %t -g -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
1515
// RUN: env LLVM_PROFILE_FILE=%t.proflite %run %t
1616
// RUN: llvm-profdata merge -o %t.profdata --debug-info=%t %t.proflite
1717

1818
// RUN: llvm-profdata show --all-functions --counts %t.normal.profdata > %t.normal2.dump
1919
// RUN: llvm-profdata show --all-functions --counts %t.profdata > %t.prof.dump
2020
// RUN: diff %t.normal2.dump %t.prof.dump
2121

22-
// RUN: %clang_pgogen -o %t.cov -g -mllvm --debug-info-correlate -mllvm -pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
22+
// RUN: %clang_pgogen -o %t.cov -g -mllvm --profile-correlate=debug-info -mllvm -pgo-function-entry-coverage -mllvm --disable-vp=true %S/../Inputs/instrprof-debug-info-correlate-main.cpp %S/../Inputs/instrprof-debug-info-correlate-foo.cpp
2323
// RUN: env LLVM_PROFILE_FILE=%t.cov.proflite %run %t.cov
2424
// RUN: llvm-profdata merge -o %t.cov.profdata --debug-info=%t.cov %t.cov.proflite
2525

compiler-rt/test/profile/Linux/instrprof-show-debug-info-correlation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %clang_pgogen -o %t -g -mllvm --debug-info-correlate -mllvm --disable-vp=true %s
1+
// RUN: %clang_pgogen -o %t -g -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %s
22
// RUN: llvm-profdata show --debug-info=%t --detailed-summary --show-prof-sym-list | FileCheck %s
33
// RUN: llvm-profdata show --debug-info=%t --show-format=yaml | FileCheck %s --match-full-lines --check-prefix YAML
44

5-
// RUN: %clang_pgogen -o %t.no.dbg -mllvm --debug-info-correlate -mllvm --disable-vp=true %s
5+
// RUN: %clang_pgogen -o %t.no.dbg -mllvm --profile-correlate=debug-info -mllvm --disable-vp=true %s
66
// RUN: not llvm-profdata show --debug-info=%t.no.dbg 2>&1 | FileCheck %s --check-prefix NO-DBG
77
// NO-DBG: unable to correlate profile: could not find any profile data metadata in correlated file
88

llvm/test/Instrumentation/InstrProfiling/debug-info-correlate-coverage.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=instrprof -debug-info-correlate -S | opt -O2 -S | FileCheck %s
1+
; RUN: opt < %s -passes=instrprof -profile-correlate=debug-info -S | opt -O2 -S | FileCheck %s
22

33
@__profn_foo = private constant [3 x i8] c"foo"
44
; CHECK: @__profc_foo

llvm/test/Instrumentation/InstrProfiling/debug-info-correlate.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -passes=instrprof -debug-info-correlate -S > %t.ll
1+
; RUN: opt < %s -passes=instrprof -profile-correlate=debug-info -S > %t.ll
22
; RUN: FileCheck < %t.ll --implicit-check-not "{{__llvm_prf_data|__llvm_prf_names}}" %s
33
; RUN: %llc_dwarf -O0 -filetype=obj < %t.ll | llvm-dwarfdump - | FileCheck --implicit-check-not "{{DW_TAG|NULL}}" %s --check-prefix CHECK-DWARF
44

0 commit comments

Comments
 (0)