Skip to content

Commit 3c18f53

Browse files
committed
[Test] Underscored linear_liveness.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent e5a6974 commit 3c18f53

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

lib/SIL/Utils/OwnershipLiveness.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ namespace swift::test {
381381
// - function
382382
// - the computed pruned liveness
383383
// - the liveness boundary
384-
static FunctionTest LinearLivenessTest("linear-liveness", [](auto &function,
384+
static FunctionTest LinearLivenessTest("linear_liveness", [](auto &function,
385385
auto &arguments,
386386
auto &test) {
387387
SILValue value = arguments.takeValue();

test/SILOptimizer/ownership_liveness_unit.sil

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ sil @getC : $@convention(thin) () -> @owned C
3737
// LinearLiveness
3838
// =============================================================================
3939

40-
// CHECK-LABEL: testLinearRefElementEscape: linear-liveness with: %borrow
40+
// CHECK-LABEL: testLinearRefElementEscape: linear_liveness with: %borrow
4141
// CHECK-LABEL: Linear liveness:
4242
// CHECK: lifetime-ending user:
4343
// CHECK-SAME: end_borrow
@@ -56,7 +56,7 @@ sil @getC : $@convention(thin) () -> @owned C
5656
sil [ossa] @testLinearRefElementEscape : $@convention(thin) (@guaranteed C) -> () {
5757
bb0(%0 : @guaranteed $C):
5858
%borrow = begin_borrow %0 : $C
59-
specify_test "linear-liveness %borrow"
59+
specify_test "linear_liveness %borrow"
6060
specify_test "linear_liveness_swift %borrow"
6161
cond_br undef, bb1, bb2
6262

@@ -78,7 +78,7 @@ bb3(%phi : @guaranteed $D):
7878
return %99 : $()
7979
}
8080

81-
// CHECK-LABEL: testLinearBitwiseEscape: linear-liveness with: %borrow
81+
// CHECK-LABEL: testLinearBitwiseEscape: linear_liveness with: %borrow
8282
// CHECK: Linear liveness:
8383
// CHECK: lifetime-ending user:
8484
// CHECK-SAME: end_borrow
@@ -97,7 +97,7 @@ bb3(%phi : @guaranteed $D):
9797
sil [ossa] @testLinearBitwiseEscape : $@convention(thin) (@guaranteed C) -> () {
9898
bb0(%0 : @guaranteed $C):
9999
%borrow = begin_borrow %0 : $C
100-
specify_test "linear-liveness %borrow"
100+
specify_test "linear_liveness %borrow"
101101
specify_test "linear_liveness_swift %borrow"
102102
cond_br undef, bb1, bb2
103103

@@ -115,7 +115,7 @@ bb3(%phi : @unowned $D):
115115
return %99 : $()
116116
}
117117

118-
// CHECK-LABEL: testLinearInnerReborrow: linear-liveness with: @argument[0]
118+
// CHECK-LABEL: testLinearInnerReborrow: linear_liveness with: @argument[0]
119119
// CHECK: Linear liveness:
120120
// CHECK: lifetime-ending user:
121121
// CHECK-SAME: destroy_value %0
@@ -133,7 +133,7 @@ bb3(%phi : @unowned $D):
133133
// CHECK-NEXT: testLinearInnerReborrow
134134
sil [ossa] @testLinearInnerReborrow : $@convention(thin) (@owned C) -> () {
135135
bb0(%0 : @owned $C):
136-
specify_test "linear-liveness @argument[0]"
136+
specify_test "linear_liveness @argument[0]"
137137
specify_test "linear_liveness_swift @argument[0]"
138138
cond_br undef, bb1, bb2
139139

@@ -152,7 +152,7 @@ bb3(%phi : @guaranteed $C):
152152
return %99 : $()
153153
}
154154

155-
// CHECK-LABEL: testLinearAdjacentReborrow: linear-liveness with: %borrow
155+
// CHECK-LABEL: testLinearAdjacentReborrow: linear_liveness with: %borrow
156156
// CHECK: lifetime-ending user:
157157
// CHECK-SAME: br bb3
158158
// CHECK-NEXT: lifetime-ending user: br bb3
@@ -172,7 +172,7 @@ bb3(%phi : @guaranteed $C):
172172
// CHECK-NEXT: testLinearAdjacentReborrow
173173
sil [ossa] @testLinearAdjacentReborrow : $@convention(thin) (@guaranteed C) -> () {
174174
bb0(%0 : @guaranteed $C):
175-
specify_test "linear-liveness %borrow"
175+
specify_test "linear_liveness %borrow"
176176
specify_test "linear_liveness_swift %borrow"
177177
%borrow = begin_borrow %0 : $C
178178
cond_br undef, bb1, bb2
@@ -192,7 +192,7 @@ bb3(%outer : @guaranteed $C, %inner : @guaranteed $C):
192192
return %99 : $()
193193
}
194194

195-
// CHECK-LABEL: begin running test {{.*}} on testLoopConditional_incomplete_linear: linear-liveness
195+
// CHECK-LABEL: begin running test {{.*}} on testLoopConditional_incomplete_linear: linear_liveness
196196
// CHECK-LABEL: sil [ossa] @testLoopConditional_incomplete_linear : {{.*}} {
197197
// CHECK: [[ENTRY:bb[0-9]+]]([[C:%[^,]+]] :
198198
// CHECK: cond_br undef, [[HEADER:bb[0-9]+]], [[EXIT:bb[0-9]+]]
@@ -211,7 +211,7 @@ bb3(%outer : @guaranteed $C, %inner : @guaranteed $C):
211211
// CHECK: lifetime-ending user: destroy_value [[C]]
212212
// CHECK: last user: destroy_value [[C]]
213213
// CHECK: boundary edge: [[HEADER]]
214-
// CHECK-LABEL: end running test {{.*}} on testLoopConditional_incomplete_linear: linear-liveness
214+
// CHECK-LABEL: end running test {{.*}} on testLoopConditional_incomplete_linear: linear_liveness
215215
// CHECK-LABEL: begin running test {{.*}} on testLoopConditional_incomplete_linear: linear_liveness_swift
216216
// CHECK: Linear liveness: [[C]]
217217
// CHECK: Live blocks:
@@ -225,7 +225,7 @@ bb3(%outer : @guaranteed $C, %inner : @guaranteed $C):
225225
// CHECK-LABEL: end running test {{.*}} on testLoopConditional_incomplete_linear: linear_liveness_swift
226226
sil [ossa] @testLoopConditional_incomplete_linear : $@convention(thin) (@owned C) -> () {
227227
entry(%c : @owned $C):
228-
specify_test "linear-liveness %c"
228+
specify_test "linear_liveness %c"
229229
specify_test "linear_liveness_swift %c"
230230
cond_br undef, header, exit
231231

@@ -243,7 +243,7 @@ exit:
243243
return %retval : $()
244244
}
245245

246-
// CHECK-LABEL: begin running test {{.*}} on testLoopConditional_complete_linear: linear-liveness
246+
// CHECK-LABEL: begin running test {{.*}} on testLoopConditional_complete_linear: linear_liveness
247247
// CHECK-LABEL: sil [ossa] @testLoopConditional_complete_linear : {{.*}} {
248248
// CHECK: [[ENTRY:bb[0-9]+]]([[C:%[^,]+]] :
249249
// CHECK: cond_br undef, [[HEADER:bb[0-9]+]], [[EXIT:bb[0-9]+]]
@@ -265,7 +265,7 @@ exit:
265265
// CHECK: lifetime-ending user: destroy_value [[C]]
266266
// CHECK: regular user: extend_lifetime [[C]]
267267
// CHECK: last user: destroy_value [[C]]
268-
// CHECK-LABEL: end running test {{.*}} on testLoopConditional_complete_linear: linear-liveness
268+
// CHECK-LABEL: end running test {{.*}} on testLoopConditional_complete_linear: linear_liveness
269269
// CHECK-LABEL: begin running test {{.*}} on testLoopConditional_complete_linear: linear_liveness_swift
270270
// CHECK: Linear liveness: [[C]]
271271
// CHECK: Live blocks:
@@ -276,7 +276,7 @@ exit:
276276
// CHECK-LABEL: end running test {{.*}} on testLoopConditional_complete_linear: linear_liveness_swift
277277
sil [ossa] @testLoopConditional_complete_linear : $@convention(thin) (@owned C) -> () {
278278
entry(%c : @owned $C):
279-
specify_test "linear-liveness %c"
279+
specify_test "linear_liveness %c"
280280
specify_test "linear_liveness_swift %c"
281281
cond_br undef, header, exit
282282

0 commit comments

Comments
 (0)