Skip to content

Commit ff5edc8

Browse files
committed
[PGO][test] Specify exact match for check labels
Some check labels in the basic.ll test are simply f[1-3], which matches all cases where the function entry is hot, cold, or uncategorized. Since the actual test results for each label have mixed cases, the current labels can be considered ambiguous. This patch specifies exact matches for each label to ensure more precise validation and to prevent potential regressions in the future.
1 parent e10ac5f commit ff5edc8

File tree

1 file changed

+8
-8
lines changed
  • llvm/test/Analysis/ProfileSummary

1 file changed

+8
-8
lines changed

llvm/test/Analysis/ProfileSummary/basic.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
define void @f1() !prof !20 {
99
; CHECK-LABEL: f1 :hot
10-
; OVERRIDE-HOT-LABEL: f1
10+
; OVERRIDE-HOT-LABEL: f1{{$}}
1111
; OVERRIDE-COLD-LABEL: f1 :hot
12-
; OVERRIDE-BOTH-LABEL: f1
12+
; OVERRIDE-BOTH-LABEL: f1{{$}}
1313
; HOT-CUTOFF-0-LABEL: f1{{$}}
1414
; COLD-CUTOFF-0-LABEL: f1 :cold
1515

@@ -19,19 +19,19 @@ define void @f1() !prof !20 {
1919
define void @f2() !prof !21 {
2020
; CHECK-LABEL: f2 :cold
2121
; OVERRIDE-HOT-LABEL: f2 :cold
22-
; OVERRIDE-COLD-LABEL: f2
23-
; OVERRIDE-BOTH-LABEL: f2
22+
; OVERRIDE-COLD-LABEL: f2{{$}}
23+
; OVERRIDE-BOTH-LABEL: f2 :cold
2424
; HOT-CUTOFF-0-LABEL: f2 :cold
2525
; COLD-CUTOFF-0-LABEL: f2 :cold
2626

2727
ret void
2828
}
2929

3030
define void @f3() !prof !22 {
31-
; CHECK-LABEL: f3
32-
; OVERRIDE-HOT-LABEL: f3
33-
; OVERRIDE-COLD-LABEL: f3
34-
; OVERRIDE-BOTH-LABEL: f3
31+
; CHECK-LABEL: f3 :hot
32+
; OVERRIDE-HOT-LABEL: f3{{$}}
33+
; OVERRIDE-COLD-LABEL: f3 :hot
34+
; OVERRIDE-BOTH-LABEL: f3 :cold
3535
; HOT-CUTOFF-0-LABEL: f3{{$}}
3636
; COLD-CUTOFF-0-LABEL: f3 :cold
3737

0 commit comments

Comments
 (0)