@@ -28,14 +28,14 @@ case some(Wrapped)
28
28
}
29
29
30
30
// CHECK-LABEL: begin running test 1 of 1 on eagerConsumneOwnedArg: ossa_lifetime_completion with: @argument
31
- // CHECK-LABEL: OSSA lifetime completion: %0 = argument of bb0 : $C
31
+ // CHECK-LABEL: OSSA lifetime completion on liveness boundary : %0 = argument of bb0 : $C
32
32
// CHECK: sil [ossa] @eagerConsumneOwnedArg : $@convention(thin) (@owned C) -> () {
33
33
// CHECK: bb0(%0 : @_eagerMove @owned $C):
34
34
// CHECK-NEXT: destroy_value %0 : $C
35
35
// CHECK-LABEL: end running test 1 of 1 on eagerConsumneOwnedArg: ossa_lifetime_completion with: @argument
36
36
sil [ossa] @eagerConsumneOwnedArg : $@convention(thin) (@owned C) -> () {
37
37
entry(%0 : @_eagerMove @owned $C):
38
- specify_test "ossa_lifetime_completion @argument"
38
+ specify_test "ossa_lifetime_completion @argument liveness "
39
39
br exit
40
40
41
41
exit:
44
44
}
45
45
46
46
// CHECK-LABEL: begin running test 1 of 1 on lexicalOwnedArg: ossa_lifetime_completion with: @argument
47
- // CHECK: OSSA lifetime completion: %0 = argument of bb0 : $C // user: %4
47
+ // CHECK: OSSA lifetime completion on availability boundary : %0 = argument of bb0 : $C // user: %4
48
48
// CHECK: sil [ossa] @lexicalOwnedArg : $@convention(thin) (@owned C) -> () {
49
49
// CHECK: bb0(%0 : @owned $C):
50
50
// CHECK: cond_br undef, bb1, bb2
55
55
// CHECK-LABEL: end running test 1 of 1 on lexicalOwnedArg: ossa_lifetime_completion with: @argument
56
56
sil [ossa] @lexicalOwnedArg : $@convention(thin) (@owned C) -> () {
57
57
bb0(%0 : @owned $C):
58
- specify_test "ossa_lifetime_completion @argument"
58
+ specify_test "ossa_lifetime_completion @argument availability "
59
59
cond_br undef, bb1, bb2
60
60
bb1:
61
61
br bb3
74
74
// CHECK-LABEL: } // end sil function 'borrowTest'
75
75
sil [ossa] @borrowTest : $@convention(method) (@owned C) -> () {
76
76
bb0(%0 : @owned $C):
77
- specify_test "ossa_lifetime_completion @instruction[0]"
77
+ specify_test "ossa_lifetime_completion @instruction[0] availability "
78
78
%borrow = begin_borrow %0 : $C
79
79
cond_br undef, bb1, bb2
80
80
99
99
// CHECK-LABEL: } // end sil function 'enumTest'
100
100
sil [ossa] @enumTest : $@convention(method) (@guaranteed FakeOptional<C>) -> () {
101
101
bb0(%0 : @guaranteed $FakeOptional<C>):
102
- specify_test "ossa_lifetime_completion @instruction[0]"
102
+ specify_test "ossa_lifetime_completion @instruction[0] liveness "
103
103
%copy = copy_value %0 : $FakeOptional<C>
104
104
%borrow = begin_borrow %copy : $FakeOptional<C>
105
105
switch_enum %borrow : $FakeOptional<C>, case #FakeOptional.some!enumelt: bb1, case #FakeOptional.none!enumelt: bb2
@@ -122,7 +122,7 @@ sil @use_guaranteed : $@convention(thin) (@guaranteed C) -> ()
122
122
123
123
sil [ossa] @argTest : $@convention(method) (@owned C) -> () {
124
124
bb0(%0 : @owned $C):
125
- specify_test "ossa_lifetime_completion @argument"
125
+ specify_test "ossa_lifetime_completion @argument availability "
126
126
debug_value %0 : $C
127
127
cond_br undef, bb1, bb2
128
128
146
146
// Ensure no assert fires while inserting dead end blocks to the worklist
147
147
sil [ossa] @testLexicalLifetimeCompletion : $@convention(thin) (@owned C) -> () {
148
148
bb0(%0 : @owned $C):
149
- specify_test "ossa_lifetime_completion @argument"
149
+ specify_test "ossa_lifetime_completion @argument availability "
150
150
debug_value %0 : $C, let, name "newElements", argno 1
151
151
cond_br undef, bb1, bb2
152
152
@@ -189,7 +189,7 @@ sil @foo : $@convention(thin) (@guaranteed C) -> ()
189
189
// Ensure no assert fires while handling lifetime end of partial_apply
190
190
sil [ossa] @testPartialApplyStack1 : $@convention(thin) (@guaranteed C) -> () {
191
191
bb0(%0 : @guaranteed $C):
192
- specify_test "ossa_lifetime_completion @instruction[0]"
192
+ specify_test "ossa_lifetime_completion @instruction[0] availability "
193
193
%8 = copy_value %0 : $C
194
194
%9 = begin_borrow %8 : $C
195
195
%80 = function_ref @foo : $@convention(thin) (@guaranteed C) -> ()
213
213
// Ensure no assert fires while handling lifetime end of partial_apply
214
214
sil [ossa] @testPartialApplyStack2 : $@convention(thin) (@guaranteed C) -> () {
215
215
bb0(%0 : @guaranteed $C):
216
- specify_test "ossa_lifetime_completion @instruction[1]"
216
+ specify_test "ossa_lifetime_completion @instruction[1] availability "
217
217
%2 = alloc_stack $C
218
218
%3 = copy_value %0 : $C
219
219
%4 = begin_borrow %3 : $C
@@ -253,7 +253,7 @@ sil [ossa] @availability_boundary_1 : $@convention(thin) () -> () {
253
253
entry:
254
254
%value = apply undef() : $@convention(thin) () -> @owned C
255
255
%lexical = move_value [lexical] %value : $C // required (for lexicality)
256
- specify_test "ossa_lifetime_completion %lexical"
256
+ specify_test "ossa_lifetime_completion %lexical availability "
257
257
br condition_1
258
258
259
259
condition_1:
@@ -310,7 +310,7 @@ sil [ossa] @availability_boundary_2_after_loop : $@convention(thin) () -> () {
310
310
entry:
311
311
%value = apply undef() : $@convention(thin) () -> @owned C
312
312
%lexical = move_value [lexical] %value : $C // required (for lexicality)
313
- specify_test "ossa_lifetime_completion %lexical"
313
+ specify_test "ossa_lifetime_completion %lexical availability "
314
314
br condition_1
315
315
316
316
condition_1:
@@ -375,7 +375,7 @@ sil [ossa] @availability_boundary_3_after_loop : $@convention(thin) () -> () {
375
375
entry:
376
376
%value = apply undef() : $@convention(thin) () -> @owned C
377
377
%lexical = move_value [lexical] %value : $C // required (for lexicality)
378
- specify_test "ossa_lifetime_completion %lexical"
378
+ specify_test "ossa_lifetime_completion %lexical availability "
379
379
br condition_1
380
380
381
381
condition_1:
@@ -425,7 +425,7 @@ sil [ossa] @project_box_deadend : $@convention(thin) (@owned C) -> () {
425
425
bb0(%0 : @owned $C):
426
426
%2 = alloc_box ${ var C }
427
427
%3 = begin_borrow %2 : ${ var C }
428
- specify_test "ossa_lifetime_completion %3"
428
+ specify_test "ossa_lifetime_completion %3 availability "
429
429
%4 = project_box %3 : ${ var C }, 0
430
430
store %0 to [init] %4 : $*C
431
431
unreachable
@@ -453,7 +453,7 @@ entry(%ie : @owned $IndirectEnumNontrivialPayload):
453
453
switch_enum %ie : $IndirectEnumNontrivialPayload, case #IndirectEnumNontrivialPayload.c!enumelt: one_case
454
454
455
455
one_case(%box : @owned ${ var C }):
456
- specify_test "ossa_lifetime_completion %box"
456
+ specify_test "ossa_lifetime_completion %box availability "
457
457
%c_addr = project_box %box : ${ var C }, 0
458
458
%c = load_borrow %c_addr : $*C
459
459
cond_br undef, left, right
483
483
%callee_pa = partial_apply [callee_guaranteed] undef() : $@convention(thin) @async @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>
484
484
%callee_noescape = convert_escape_to_noescape [not_guaranteed] %callee_pa : $@async @callee_guaranteed @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>
485
485
to $@noescape @async @callee_guaranteed @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>
486
- specify_test "ossa_lifetime_completion %callee_noescape"
486
+ specify_test "ossa_lifetime_completion %callee_noescape availability "
487
487
%async_let = builtin "startAsyncLetWithLocalBuffer"<()>(
488
488
%task_options : $Optional<Builtin.RawPointer>,
489
489
%callee_noescape : $@noescape @async @callee_guaranteed @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>,
508
508
sil [ossa] @alloc_box : $@convention(thin) (@owned C) -> () {
509
509
entry(%instance : @owned $C):
510
510
%box = alloc_box ${ var C }
511
- specify_test "ossa_lifetime_completion %box"
511
+ specify_test "ossa_lifetime_completion %box availability "
512
512
%addr = project_box %box : ${ var C }, 0
513
513
store %instance to [init] %addr : $*C
514
514
unreachable
@@ -526,7 +526,7 @@ entry(%instance : @owned $C):
526
526
sil [ossa] @begin_apply : $@convention(thin) () -> () {
527
527
entry:
528
528
(%_, %token) = begin_apply undef() : $@yield_once @convention(thin) () -> (@yields @in_guaranteed ())
529
- specify_test "ossa_lifetime_completion %token"
529
+ specify_test "ossa_lifetime_completion %token availability "
530
530
cond_br undef, left, right
531
531
532
532
left:
0 commit comments