[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.
This commit is contained in:
parent
0a86f9cbcc
commit
08b1708084
@ -14,8 +14,15 @@ define i64 @f2(i64 %a, i64 %b) {
|
||||
|
||||
define i64 @f1() {
|
||||
%sum = call i64 @f2(i64 2, i64 2)
|
||||
%isEqual = icmp eq i64 %sum, 4
|
||||
br i1 %isEqual, label %ifEqual, label %ifNotEqual
|
||||
ifEqual:
|
||||
ret i64 0
|
||||
ifNotEqual:
|
||||
ret i64 %sum
|
||||
}
|
||||
|
||||
; CHECK: f2,0,1.000000e+00
|
||||
; CHECK-NEXT: f1,0,1.000000e+00
|
||||
; CHECK-NEXT: f1,1,5.000000e-01
|
||||
; CHECK-NEXT: f1,2,1.000000e+00
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user