Skip to content

Commit 4d73c01

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 4389220 commit 4d73c01

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
@@ -5,27 +5,27 @@
55

66
define void @f1() !prof !20 {
77
; CHECK-LABEL: f1 :hot
8-
; OVERRIDE-HOT-LABEL: f1
8+
; OVERRIDE-HOT-LABEL: f1{{$}}
99
; OVERRIDE-COLD-LABEL: f1 :hot
10-
; OVERRIDE-BOTH-LABEL: f1
10+
; OVERRIDE-BOTH-LABEL: f1{{$}}
1111

1212
ret void
1313
}
1414

1515
define void @f2() !prof !21 {
1616
; CHECK-LABEL: f2 :cold
1717
; OVERRIDE-HOT-LABEL: f2 :cold
18-
; OVERRIDE-COLD-LABEL: f2
19-
; OVERRIDE-BOTH-LABEL: f2
18+
; OVERRIDE-COLD-LABEL: f2{{$}}
19+
; OVERRIDE-BOTH-LABEL: f2 :cold
2020

2121
ret void
2222
}
2323

2424
define void @f3() !prof !22 {
25-
; CHECK-LABEL: f3
26-
; OVERRIDE-HOT-LABEL: f3
27-
; OVERRIDE-COLD-LABEL: f3
28-
; OVERRIDE-BOTH-LABEL: f3
25+
; CHECK-LABEL: f3 :hot
26+
; OVERRIDE-HOT-LABEL: f3{{$}}
27+
; OVERRIDE-COLD-LABEL: f3 :hot
28+
; OVERRIDE-BOTH-LABEL: f3 :cold
2929

3030
ret void
3131
}

0 commit comments

Comments
 (0)