Skip to content

Commit 5dfe98c

Browse files
rotaterightmemfrob
authored andcommitted
[PGOProfile] make test less brittle; NFC
This test may fail just from cosmetic diffs because the values change names. This is a minimal diff to work-around that, but more may be needed.
1 parent 138ff5a commit 5dfe98c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Transforms/PGOProfile/cspgo_profile_summary.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ for.end:
6666
ret void
6767
}
6868
; PGOSUMMARY-LABEL: @bar
69-
; PGOSUMMARY: %odd.sink = select i1 %tobool, i32* @even, i32* @odd
69+
; PGOSUMMARY: %odd.sink{{[0-9]*}} = select i1 %tobool{{[0-9]*}}, i32* @even, i32* @odd
7070
; PGOSUMMARY-SAME: !prof ![[BW_PGO_BAR:[0-9]+]]
7171
; CSPGOSUMMARY-LABEL: @bar
72-
; CSPGOSUMMARY: %odd.sink = select i1 %tobool, i32* @even, i32* @odd
72+
; CSPGOSUMMARY: %odd.sink{{[0-9]*}} = select i1 %tobool{{[0-9]*}}, i32* @even, i32* @odd
7373
; CSPGOSUMMARY-SAME: !prof ![[BW_CSPGO_BAR:[0-9]+]]
7474

7575
define internal fastcc i32 @cond(i32 %i) {

0 commit comments

Comments
 (0)