@@ -20,7 +20,7 @@ struct PairC {
20
20
var second: C
21
21
}
22
22
23
- // CHECK-LABEL: testSelfLoop: ssa-liveness
23
+ // CHECK-LABEL: testSelfLoop: ssa_liveness
24
24
// CHECK: SSA lifetime analysis: [[V:%.*]] = copy_value %0 : $C
25
25
// CHECK: bb1: LiveOut
26
26
// CHECK: bb2: LiveWithin
@@ -34,7 +34,7 @@ bb0(%0 : @guaranteed $C):
34
34
bb1(%1 : @owned $C):
35
35
destroy_value %1 : $C
36
36
%2 = copy_value %0 : $C
37
- specify_test "ssa-liveness @trace[0]"
37
+ specify_test "ssa_liveness @trace[0]"
38
38
debug_value [trace] %2 : $C
39
39
br bb2
40
40
46
46
return %99 : $()
47
47
}
48
48
49
- // CHECK-LABEL: testSelfKill: ssa-liveness
49
+ // CHECK-LABEL: testSelfKill: ssa_liveness
50
50
// CHECK:SSA lifetime analysis: [[V:%.*]] = move_value %1 : $C
51
51
// CHECK: bb1: LiveOut
52
52
// CHECK: bb2: LiveWithin
59
59
60
60
bb1(%1 : @owned $C):
61
61
%2 = move_value %1 : $C
62
- specify_test "ssa-liveness @trace[0]"
62
+ specify_test "ssa_liveness @trace[0]"
63
63
debug_value [trace] %2 : $C
64
64
br bb2
65
65
77
77
//
78
78
// This live range is not dominated by the original borrow.
79
79
//
80
- // CHECK-LABEL: testReborrow: multidef-liveness
80
+ // CHECK-LABEL: testReborrow: multidef_liveness
81
81
// CHECK: MultiDef lifetime analysis:
82
82
// CHECK: def value: [[B:%.*]] = begin_borrow %0 : $C
83
83
// CHECK: def value: [[RB:%.*]] = argument of bb3 : $C
97
97
98
98
bb2:
99
99
%borrow2 = begin_borrow %0 : $C
100
- specify_test "multidef-liveness @trace[0] @trace[1]"
100
+ specify_test "multidef_liveness @trace[0] @trace[1]"
101
101
debug_value [trace] %borrow2 : $C
102
102
br bb3(%borrow2 : $C)
103
103
112
112
return %99 : $()
113
113
}
114
114
115
- // CHECK-LABEL: testGuaranteedForwarding: ssa-liveness
115
+ // CHECK-LABEL: testGuaranteedForwarding: ssa_liveness
116
116
// CHECK: SSA lifetime analysis: [[C:%.*]] = unchecked_ref_cast %{{.*}} : $D to $C
117
117
// CHECK: bb0: LiveWithin
118
118
// CHECK: regular user: %{{.*}} = load [copy]
@@ -121,7 +121,7 @@ sil [ossa] @testGuaranteedForwarding : $@convention(thin) (@owned D) -> () {
121
121
bb0(%0 : @owned $D):
122
122
%borrow0 = begin_borrow %0 : $D
123
123
%c = unchecked_ref_cast %borrow0 : $D to $C
124
- specify_test "ssa-liveness @trace[0]"
124
+ specify_test "ssa_liveness @trace[0]"
125
125
debug_value [trace] %c : $C
126
126
%d = unchecked_ref_cast %c : $C to $D
127
127
%f = ref_element_addr %d : $D, #D.object
@@ -133,28 +133,28 @@ bb0(%0 : @owned $D):
133
133
return %99 : $()
134
134
}
135
135
136
- // CHECK-LABEL: testGuaranteedResult: ssa-liveness
136
+ // CHECK-LABEL: testGuaranteedResult: ssa_liveness
137
137
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $D
138
138
// CHECK: bb0: LiveWithin
139
139
// CHECK: last user: end_apply
140
140
sil [ossa] @testGuaranteedResult : $@convention(thin) (@guaranteed D) -> () {
141
141
bb0(%0 : @guaranteed $D):
142
- specify_test "ssa-liveness @argument[0]"
142
+ specify_test "ssa_liveness @argument[0]"
143
143
%2 = class_method %0 : $D, #D.borrowed!read : (D) -> () -> (), $@yield_once @convention(method) (@guaranteed D) -> @yields @guaranteed C
144
144
(%3, %4) = begin_apply %2(%0) : $@yield_once @convention(method) (@guaranteed D) -> @yields @guaranteed C
145
145
end_apply %4
146
146
%99 = tuple()
147
147
return %99 : $()
148
148
}
149
149
150
- // CHECK-LABEL: testScopedAddress: ssa-liveness
150
+ // CHECK-LABEL: testScopedAddress: ssa_liveness
151
151
// CHECK: SSA lifetime analysis: %{{.*}} = ref_element_addr %0
152
152
// CHECK: bb0: LiveWithin
153
153
// CHECK: last user: end_access
154
154
sil [ossa] @testScopedAddress : $@convention(thin) (@guaranteed D) -> () {
155
155
bb0(%0 : @guaranteed $D):
156
156
%f = ref_element_addr %0 : $D, #D.object
157
- specify_test "ssa-liveness @trace[0]"
157
+ specify_test "ssa_liveness @trace[0]"
158
158
debug_value [trace] %f : $*C
159
159
%access = begin_access [read] [static] %f : $*C
160
160
%o = load [copy] %access : $*C
@@ -164,21 +164,21 @@ bb0(%0 : @guaranteed $D):
164
164
return %99 : $()
165
165
}
166
166
167
- // CHECK-LABEL: testDeadAddress: ssa-liveness
167
+ // CHECK-LABEL: testDeadAddress: ssa_liveness
168
168
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $D
169
169
// CHECK: bb0: LiveWithin
170
170
// CHECK: last user: %{{.*}} = ref_element_addr
171
171
sil [ossa] @testDeadAddress : $@convention(thin) (@guaranteed D) -> () {
172
172
bb0(%0 : @guaranteed $D):
173
- specify_test "ssa-liveness @argument[0]"
173
+ specify_test "ssa_liveness @argument[0]"
174
174
%f = ref_element_addr %0 : $D, #D.object
175
175
%99 = tuple()
176
176
return %99 : $()
177
177
}
178
178
179
179
// A LiveOut block with a non-SSA def, bb0, has no liveness boundary.
180
180
//
181
- // CHECK-LABEL: testMultiDefLiveOutNoBoundary: multidef-liveness
181
+ // CHECK-LABEL: testMultiDefLiveOutNoBoundary: multidef_liveness
182
182
// CHECK: MultiDef lifetime analysis:
183
183
// CHECK: def value: [[CP0:%.*]] = copy_value %0 : $C
184
184
// CHECK: def value: %{{.*}} = copy_value %0 : $C
@@ -197,7 +197,7 @@ bb0(%0 : @guaranteed $D):
197
197
sil [ossa] @testMultiDefLiveOutNoBoundary : $@convention(thin) (@guaranteed C) -> () {
198
198
bb0(%0 : @guaranteed $C):
199
199
%copy0 = copy_value %0 : $C
200
- specify_test "multidef-liveness @trace[0] @trace[1] @trace[2] @trace[3]"
200
+ specify_test "multidef_liveness @trace[0] @trace[1] @trace[2] @trace[3]"
201
201
debug_value [trace] %copy0 : $C
202
202
cond_br undef, bb1, bb3
203
203
@@ -222,17 +222,17 @@ bb4(%phi : @owned $C):
222
222
return %99 : $()
223
223
}
224
224
225
- // CHECK-LABEL: testSSADeadRefElementAddr: ssa-liveness
225
+ // CHECK-LABEL: testSSADeadRefElementAddr: ssa_liveness
226
226
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $C
227
227
// CHECK-NEXT: bb0: LiveOut
228
228
// CHECK-NEXT: bb2: LiveOut
229
229
// CHECK-NEXT: bb3: LiveWithin
230
230
// CHECK-NEXT: bb1: LiveOut
231
231
// CHECK: ref_element_addr %6 : $D, #D.object
232
- // CHECK-NEXT-LABEL: end running test 1 of 1 on testSSADeadRefElementAddr: ssa-liveness
232
+ // CHECK-NEXT-LABEL: end running test 1 of 1 on testSSADeadRefElementAddr: ssa_liveness
233
233
sil [ossa] @testSSADeadRefElementAddr : $@convention(thin) (@guaranteed C) -> () {
234
234
bb0(%0 : @guaranteed $C):
235
- specify_test "ssa-liveness @argument[0]"
235
+ specify_test "ssa_liveness @argument[0]"
236
236
cond_br undef, bb1, bb2
237
237
238
238
bb1:
@@ -251,14 +251,14 @@ bb3(%phi : @guaranteed $D):
251
251
252
252
// One of the uses is a reborrowed inner borrow scope.
253
253
//
254
- // CHECK-LABEL: testSSAInnerReborrowedPhi: ssa-liveness
254
+ // CHECK-LABEL: testSSAInnerReborrowedPhi: ssa_liveness
255
255
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $C
256
256
// CHECK-NEXT: Incomplete liveness: Reborrowed inner scope
257
257
// CHECK-NEXT: bb0: LiveWithin
258
258
// CHECK-NEXT: dead def: %0 = argument of bb0 : $C
259
259
sil [ossa] @testSSAInnerReborrowedPhi : $@convention(thin) (@guaranteed C) -> () {
260
260
bb0(%0 : @guaranteed $C):
261
- specify_test "ssa-liveness @argument[0]"
261
+ specify_test "ssa_liveness @argument[0]"
262
262
%borrow0 = begin_borrow %0 : $C
263
263
%aggregate = struct $PairC(%borrow0 : $C, %borrow0 : $C)
264
264
br bb1(%borrow0 : $C, %aggregate : $PairC)
@@ -280,7 +280,7 @@ bb1(%reborrow : @guaranteed $C, %phi : @guaranteed $PairC):
280
280
// by default. Only the client can tell that a particular guaranteed phi
281
281
// should actually extend liveness if it has no uses.
282
282
//
283
- // CHECK-LABEL: testSSADeadGuaranteedPhi: ssa-liveness
283
+ // CHECK-LABEL: testSSADeadGuaranteedPhi: ssa_liveness
284
284
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $C
285
285
// CHECK-NEXT: bb0: LiveOut
286
286
// CHECK-NEXT: bb2: LiveWithin
@@ -292,7 +292,7 @@ bb1(%reborrow : @guaranteed $C, %phi : @guaranteed $PairC):
292
292
// CHECK-NEXT: end running
293
293
sil [ossa] @testSSADeadGuaranteedPhi : $@convention(thin) (@guaranteed C) -> () {
294
294
bb0(%0 : @guaranteed $C):
295
- specify_test "ssa-liveness @argument[0]"
295
+ specify_test "ssa_liveness @argument[0]"
296
296
cond_br undef, bb1, bb2
297
297
298
298
bb1:
@@ -310,7 +310,7 @@ bb3(%deadPhi : @guaranteed $D):
310
310
311
311
// The phi is part of the guaranteed argument's simple live range.
312
312
//
313
- // CHECK-LABEL: testSSADominatedPhi: ssa-liveness
313
+ // CHECK-LABEL: testSSADominatedPhi: ssa_liveness
314
314
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $C
315
315
// CHECK-NEXT: bb0: LiveOut
316
316
// CHECK-NEXT: bb2: LiveOut
@@ -325,7 +325,7 @@ bb3(%deadPhi : @guaranteed $D):
325
325
// CHECK-NEXT: end running
326
326
sil [ossa] @testSSADominatedPhi : $@convention(thin) (@guaranteed C) -> () {
327
327
bb0(%0 : @guaranteed $C):
328
- specify_test "ssa-liveness @argument[0]"
328
+ specify_test "ssa_liveness @argument[0]"
329
329
cond_br undef, bb1, bb2
330
330
331
331
bb1:
@@ -346,15 +346,15 @@ bb3(%phi : @guaranteed $D):
346
346
347
347
// The phi is part of the guaranteed argument's simple live range.
348
348
//
349
- // CHECK-LABEL: testSSAPartialDominatedPhi: ssa-liveness
349
+ // CHECK-LABEL: testSSAPartialDominatedPhi: ssa_liveness
350
350
// CHECK: SSA lifetime analysis: %0 = argument of bb0 : $C
351
351
// CHECK-NEXT: bb0: LiveOut
352
352
// CHECK-NEXT: bb1: LiveWithin
353
353
// CHECK: last user:
354
354
// CHECK-SAME: load
355
355
sil [ossa] @testSSAPartialDominatedPhi : $@convention(thin) (@guaranteed C, @guaranteed C) -> () {
356
356
bb0(%0 : @guaranteed $C, %1 : @guaranteed $C):
357
- specify_test "ssa-liveness @argument[0]"
357
+ specify_test "ssa_liveness @argument[0]"
358
358
%borrow1 = begin_borrow %1 : $C
359
359
%aggregate = struct $PairC(%0 : $C, %borrow1 : $C)
360
360
br bb1(%borrow1 : $C, %aggregate : $PairC)
@@ -373,7 +373,7 @@ bb1(%reborrow : @guaranteed $C, %phi : @guaranteed $PairC):
373
373
// The phi is protected by an outer adjacent reborrow. It is not part
374
374
// of the guaranteed argument's simple live range.
375
375
//
376
- // CHECK-LABEL: testSSAReborrowedPhi: ssa-liveness
376
+ // CHECK-LABEL: testSSAReborrowedPhi: ssa_liveness
377
377
// CHECK: SSA lifetime analysis: %{{.*}} = begin_borrow
378
378
// CHECK-NEXT: bb0: LiveWithin
379
379
// CHECK-NEXT: regular user: br bb1
@@ -383,7 +383,7 @@ bb1(%reborrow : @guaranteed $C, %phi : @guaranteed $PairC):
383
383
sil [ossa] @testSSAReborrowedPhi : $@convention(thin) (@guaranteed C) -> () {
384
384
bb0(%0 : @guaranteed $C):
385
385
%borrow = begin_borrow %0 : $C
386
- specify_test "ssa-liveness @trace[0]"
386
+ specify_test "ssa_liveness @trace[0]"
387
387
debug_value [trace] %borrow : $C
388
388
%aggregate = struct $PairC(%borrow : $C, %borrow : $C)
389
389
br bb1(%borrow : $C, %aggregate : $PairC)
@@ -403,7 +403,7 @@ bb1(%reborrow : @guaranteed $C, %phi : @guaranteed $PairC):
403
403
//
404
404
sil [ossa] @testSSALongForwardingChain : $@convention(thin) (@guaranteed C) -> () {
405
405
bb0(%0 : @guaranteed $C):
406
- specify_test "ssa-liveness @argument[0]"
406
+ specify_test "ssa_liveness @argument[0]"
407
407
%s0 = struct $PairC(%0 : $C, %0 : $C)
408
408
%s0a = struct_extract %s0 : $PairC, #PairC.first
409
409
%s0b = struct_extract %s0 : $PairC, #PairC.second
@@ -514,7 +514,7 @@ bb0(%0: @owned $C):
514
514
%1 = alloc_stack $C
515
515
%2 = copy_value %0 : $C
516
516
specify_test """
517
- multidefuse-liveness defs: @instruction @block[1].instruction[2]
517
+ multidefuse_liveness defs: @instruction @block[1].instruction[2]
518
518
uses: @block[1].instruction[0]
519
519
"""
520
520
store %2 to [init] %1 : $*C
0 commit comments