Skip to content

Commit 08b1708

Browse files
[MLGO] Update test for MBB Profile Dump
This patch updates the test for the MBB profile dump to include a function that has multiple basic blocks so that we can test the numbering of multiple basic blocks within an individual function.
1 parent 0a86f9c commit 08b1708

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/test/CodeGen/MLRegalloc/bb-profile-dump.ll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ define i64 @f2(i64 %a, i64 %b) {
1414

1515
define i64 @f1() {
1616
%sum = call i64 @f2(i64 2, i64 2)
17+
%isEqual = icmp eq i64 %sum, 4
18+
br i1 %isEqual, label %ifEqual, label %ifNotEqual
19+
ifEqual:
20+
ret i64 0
21+
ifNotEqual:
1722
ret i64 %sum
1823
}
1924

2025
; CHECK: f2,0,1.000000e+00
2126
; CHECK-NEXT: f1,0,1.000000e+00
27+
; CHECK-NEXT: f1,1,5.000000e-01
28+
; CHECK-NEXT: f1,2,1.000000e+00

0 commit comments

Comments
 (0)