Skip to content

Commit d2aef4b

Browse files
committed
[Test] Used underscores in test name.
Makes it easier to search for since editors will see it as a single name.
1 parent d5aafbc commit d2aef4b

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

lib/SIL/Utils/OSSALifetimeCompletion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ namespace swift::test {
371371
// Dumps:
372372
// - function
373373
static FunctionTest OSSALifetimeCompletionTest(
374-
"ossa-lifetime-completion",
374+
"ossa_lifetime_completion",
375375
[](auto &function, auto &arguments, auto &test) {
376376
SILValue value = arguments.takeValue();
377377
std::optional<OSSALifetimeCompletion::Boundary> kind = std::nullopt;

test/SILOptimizer/ossa_lifetime_completion.sil

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ case none
2727
case some(Wrapped)
2828
}
2929

30-
// CHECK-LABEL: begin running test 1 of 1 on eagerConsumneOwnedArg: ossa-lifetime-completion with: @argument
30+
// CHECK-LABEL: begin running test 1 of 1 on eagerConsumneOwnedArg: ossa_lifetime_completion with: @argument
3131
// CHECK-LABEL: OSSA lifetime completion: %0 = argument of bb0 : $C
3232
// CHECK: sil [ossa] @eagerConsumneOwnedArg : $@convention(thin) (@owned C) -> () {
3333
// CHECK: bb0(%0 : @_eagerMove @owned $C):
3434
// CHECK-NEXT: destroy_value %0 : $C
35-
// CHECK-LABEL: end running test 1 of 1 on eagerConsumneOwnedArg: ossa-lifetime-completion with: @argument
35+
// CHECK-LABEL: end running test 1 of 1 on eagerConsumneOwnedArg: ossa_lifetime_completion with: @argument
3636
sil [ossa] @eagerConsumneOwnedArg : $@convention(thin) (@owned C) -> () {
3737
entry(%0 : @_eagerMove @owned $C):
38-
specify_test "ossa-lifetime-completion @argument"
38+
specify_test "ossa_lifetime_completion @argument"
3939
br exit
4040

4141
exit:
4242
%retval = tuple ()
4343
return %retval : $()
4444
}
4545

46-
// CHECK-LABEL: begin running test 1 of 1 on lexicalOwnedArg: ossa-lifetime-completion with: @argument
46+
// CHECK-LABEL: begin running test 1 of 1 on lexicalOwnedArg: ossa_lifetime_completion with: @argument
4747
// CHECK: OSSA lifetime completion: %0 = argument of bb0 : $C // user: %4
4848
// CHECK: sil [ossa] @lexicalOwnedArg : $@convention(thin) (@owned C) -> () {
4949
// CHECK: bb0(%0 : @owned $C):
@@ -52,10 +52,10 @@ exit:
5252
// CHECK-NEXT: destroy_value %0 : $C
5353
// CHECK-NEXT: unreachable
5454
// CHECK: } // end sil function 'lexicalOwnedArg'
55-
// CHECK-LABEL: end running test 1 of 1 on lexicalOwnedArg: ossa-lifetime-completion with: @argument
55+
// CHECK-LABEL: end running test 1 of 1 on lexicalOwnedArg: ossa_lifetime_completion with: @argument
5656
sil [ossa] @lexicalOwnedArg : $@convention(thin) (@owned C) -> () {
5757
bb0(%0 : @owned $C):
58-
specify_test "ossa-lifetime-completion @argument"
58+
specify_test "ossa_lifetime_completion @argument"
5959
cond_br undef, bb1, bb2
6060
bb1:
6161
br bb3
@@ -74,7 +74,7 @@ bb3:
7474
// CHECK-LABEL: } // end sil function 'borrowTest'
7575
sil [ossa] @borrowTest : $@convention(method) (@owned C) -> () {
7676
bb0(%0 : @owned $C):
77-
specify_test "ossa-lifetime-completion @instruction[0]"
77+
specify_test "ossa_lifetime_completion @instruction[0]"
7878
%borrow = begin_borrow %0 : $C
7979
cond_br undef, bb1, bb2
8080

@@ -99,7 +99,7 @@ bb3:
9999
// CHECK-LABEL: } // end sil function 'enumTest'
100100
sil [ossa] @enumTest : $@convention(method) (@guaranteed FakeOptional<C>) -> () {
101101
bb0(%0 : @guaranteed $FakeOptional<C>):
102-
specify_test "ossa-lifetime-completion @instruction[0]"
102+
specify_test "ossa_lifetime_completion @instruction[0]"
103103
%copy = copy_value %0 : $FakeOptional<C>
104104
%borrow = begin_borrow %copy : $FakeOptional<C>
105105
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) -> ()
122122

123123
sil [ossa] @argTest : $@convention(method) (@owned C) -> () {
124124
bb0(%0 : @owned $C):
125-
specify_test "ossa-lifetime-completion @argument"
125+
specify_test "ossa_lifetime_completion @argument"
126126
debug_value %0 : $C
127127
cond_br undef, bb1, bb2
128128

@@ -146,7 +146,7 @@ bb4:
146146
// Ensure no assert fires while inserting dead end blocks to the worklist
147147
sil [ossa] @testLexicalLifetimeCompletion : $@convention(thin) (@owned C) -> () {
148148
bb0(%0 : @owned $C):
149-
specify_test "ossa-lifetime-completion @argument"
149+
specify_test "ossa_lifetime_completion @argument"
150150
debug_value %0 : $C, let, name "newElements", argno 1
151151
cond_br undef, bb1, bb2
152152

@@ -189,7 +189,7 @@ sil @foo : $@convention(thin) (@guaranteed C) -> ()
189189
// Ensure no assert fires while handling lifetime end of partial_apply
190190
sil [ossa] @testPartialApplyStack1 : $@convention(thin) (@guaranteed C) -> () {
191191
bb0(%0 : @guaranteed $C):
192-
specify_test "ossa-lifetime-completion @instruction[0]"
192+
specify_test "ossa_lifetime_completion @instruction[0]"
193193
%8 = copy_value %0 : $C
194194
%9 = begin_borrow %8 : $C
195195
%80 = function_ref @foo : $@convention(thin) (@guaranteed C) -> ()
@@ -213,7 +213,7 @@ bb3:
213213
// Ensure no assert fires while handling lifetime end of partial_apply
214214
sil [ossa] @testPartialApplyStack2 : $@convention(thin) (@guaranteed C) -> () {
215215
bb0(%0 : @guaranteed $C):
216-
specify_test "ossa-lifetime-completion @instruction[1]"
216+
specify_test "ossa_lifetime_completion @instruction[1]"
217217
%2 = alloc_stack $C
218218
%3 = copy_value %0 : $C
219219
%4 = begin_borrow %3 : $C
@@ -253,7 +253,7 @@ sil [ossa] @availability_boundary_1 : $@convention(thin) () -> () {
253253
entry:
254254
%value = apply undef() : $@convention(thin) () -> @owned C
255255
%lexical = move_value [lexical] %value : $C // required (for lexicality)
256-
specify_test "ossa-lifetime-completion %lexical"
256+
specify_test "ossa_lifetime_completion %lexical"
257257
br condition_1
258258

259259
condition_1:
@@ -310,7 +310,7 @@ sil [ossa] @availability_boundary_2_after_loop : $@convention(thin) () -> () {
310310
entry:
311311
%value = apply undef() : $@convention(thin) () -> @owned C
312312
%lexical = move_value [lexical] %value : $C // required (for lexicality)
313-
specify_test "ossa-lifetime-completion %lexical"
313+
specify_test "ossa_lifetime_completion %lexical"
314314
br condition_1
315315

316316
condition_1:
@@ -375,7 +375,7 @@ sil [ossa] @availability_boundary_3_after_loop : $@convention(thin) () -> () {
375375
entry:
376376
%value = apply undef() : $@convention(thin) () -> @owned C
377377
%lexical = move_value [lexical] %value : $C // required (for lexicality)
378-
specify_test "ossa-lifetime-completion %lexical"
378+
specify_test "ossa_lifetime_completion %lexical"
379379
br condition_1
380380

381381
condition_1:
@@ -425,7 +425,7 @@ sil [ossa] @project_box_deadend : $@convention(thin) (@owned C) -> () {
425425
bb0(%0 : @owned $C):
426426
%2 = alloc_box ${ var C }
427427
%3 = begin_borrow %2 : ${ var C }
428-
specify_test "ossa-lifetime-completion %3"
428+
specify_test "ossa_lifetime_completion %3"
429429
%4 = project_box %3 : ${ var C }, 0
430430
store %0 to [init] %4 : $*C
431431
unreachable
@@ -453,7 +453,7 @@ entry(%ie : @owned $IndirectEnumNontrivialPayload):
453453
switch_enum %ie : $IndirectEnumNontrivialPayload, case #IndirectEnumNontrivialPayload.c!enumelt: one_case
454454

455455
one_case(%box : @owned ${ var C }):
456-
specify_test "ossa-lifetime-completion %box"
456+
specify_test "ossa_lifetime_completion %box"
457457
%c_addr = project_box %box : ${ var C }, 0
458458
%c = load_borrow %c_addr : $*C
459459
cond_br undef, left, right
@@ -483,7 +483,7 @@ bb0:
483483
%callee_pa = partial_apply [callee_guaranteed] undef() : $@convention(thin) @async @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>
484484
%callee_noescape = convert_escape_to_noescape [not_guaranteed] %callee_pa : $@async @callee_guaranteed @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>
485485
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"
487487
%async_let = builtin "startAsyncLetWithLocalBuffer"<()>(
488488
%task_options : $Optional<Builtin.RawPointer>,
489489
%callee_noescape : $@noescape @async @callee_guaranteed @substituted <τ_0_0> () -> (@out τ_0_0, @error any Error) for <()>,
@@ -499,16 +499,16 @@ bb0:
499499
return %retval : $()
500500
}
501501

502-
// CHECK-LABEL: begin running test {{.*}} on alloc_box: ossa-lifetime-completion
502+
// CHECK-LABEL: begin running test {{.*}} on alloc_box: ossa_lifetime_completion
503503
// CHECK-LABEL: sil [ossa] @alloc_box : {{.*}} {
504504
// CHECK: [[BOX:%[^,]+]] = alloc_box
505505
// CHECK: dealloc_box [[BOX]]
506506
// CHECK-LABEL: } // end sil function 'alloc_box'
507-
// CHECK-LABEL: end running test {{.*}} on alloc_box: ossa-lifetime-completion
507+
// CHECK-LABEL: end running test {{.*}} on alloc_box: ossa_lifetime_completion
508508
sil [ossa] @alloc_box : $@convention(thin) (@owned C) -> () {
509509
entry(%instance : @owned $C):
510510
%box = alloc_box ${ var C }
511-
specify_test "ossa-lifetime-completion %box"
511+
specify_test "ossa_lifetime_completion %box"
512512
%addr = project_box %box : ${ var C }, 0
513513
store %instance to [init] %addr : $*C
514514
unreachable
@@ -526,7 +526,7 @@ entry(%instance : @owned $C):
526526
sil [ossa] @begin_apply : $@convention(thin) () -> () {
527527
entry:
528528
(%_, %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"
530530
cond_br undef, left, right
531531

532532
left:

0 commit comments

Comments
 (0)