Skip to content

Commit 5a93b7d

Browse files
committed
[Test] Underscored visit_inner_adjacent_phis.
Use underscores rather than hyphens so that text editors understand the name as a single word.
1 parent 1fbc526 commit 5a93b7d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/SIL/Utils/OwnershipUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2288,7 +2288,7 @@ namespace swift::test {
22882288
// - function
22892289
// - the adjacent phis
22902290
static FunctionTest VisitInnerAdjacentPhisTest(
2291-
"visit-inner-adjacent-phis",
2291+
"visit_inner_adjacent_phis",
22922292
[](auto &function, auto &arguments, auto &test) {
22932293
function.print(llvm::outs());
22942294
visitInnerAdjacentPhis(cast<SILPhiArgument>(arguments.takeValue()),

test/SILOptimizer/ownership_liveness_unit.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ exit:
299299
// visitInnerAdjacentPhis
300300
// =============================================================================
301301

302-
// CHECK-LABEL: pay_the_phi: visit-inner-adjacent-phis with: %owned
302+
// CHECK-LABEL: pay_the_phi: visit_inner_adjacent_phis with: %owned
303303
// CHECK: sil [ossa] @pay_the_phi : {{.*}} {
304304
// CHECK: [[C:%[^,]+]] = apply
305305
// CHECK: [[BORROW1:%[^,]+]] = begin_borrow %1
@@ -310,7 +310,7 @@ exit:
310310
//
311311
// CHECK:[[GUARANTEED1]] = argument of [[EXIT]]
312312
// CHECK:[[GUARANTEED2]] = argument of [[EXIT]]
313-
// CHECK-LABEL: pay_the_phi: visit-inner-adjacent-phis with: %owned
313+
// CHECK-LABEL: pay_the_phi: visit_inner_adjacent_phis with: %owned
314314
sil [ossa] @pay_the_phi : $@convention(thin) () -> () {
315315
entry:
316316
%getC = function_ref @getC : $@convention(thin) () -> @owned C
@@ -321,7 +321,7 @@ entry:
321321
br exit(%c : $C, %borrow1 : $C, %borrow2 : $C, %borrow3 : $C)
322322

323323
exit(%owned : @owned $C, %guaranteed_1 : @guaranteed $C, %guaranteed_2 : @guaranteed $C, %guaranteed_3 : @guaranteed $C):
324-
specify_test "visit-inner-adjacent-phis %owned"
324+
specify_test "visit_inner_adjacent_phis %owned"
325325
end_borrow %guaranteed_3 : $C
326326
end_borrow %guaranteed_2 : $C
327327
end_borrow %guaranteed_1 : $C
@@ -330,19 +330,19 @@ exit(%owned : @owned $C, %guaranteed_1 : @guaranteed $C, %guaranteed_2 : @guaran
330330
return %retval : $()
331331
}
332332

333-
// CHECK-LABEL: pay_the_phi_forward: visit-inner-adjacent-phis with: %reborrow
333+
// CHECK-LABEL: pay_the_phi_forward: visit_inner_adjacent_phis with: %reborrow
334334
// CHECK: bb1(%{{.*}} : @reborrow @guaranteed $C, [[INNER:%.*]] : @guaranteed $D): // Preds: bb0
335335
// CHECK: } // end sil function 'pay_the_phi_forward'
336336
// CHECK: [[INNER]] = argument of bb1 : $D
337-
// CHECK: pay_the_phi_forward: visit-inner-adjacent-phis with: %reborrow
337+
// CHECK: pay_the_phi_forward: visit_inner_adjacent_phis with: %reborrow
338338
sil [ossa] @pay_the_phi_forward : $@convention(thin) (@guaranteed C) -> () {
339339
bb0(%0 : @guaranteed $C):
340340
%borrow0 = begin_borrow %0 : $C
341341
%d0 = unchecked_ref_cast %borrow0 : $C to $D
342342
br exit(%borrow0 : $C, %d0 : $D)
343343

344344
exit(%reborrow : @guaranteed $C, %phi : @guaranteed $D):
345-
specify_test "visit-inner-adjacent-phis %reborrow"
345+
specify_test "visit_inner_adjacent_phis %reborrow"
346346
%f = ref_element_addr %phi : $D, #D.object
347347
%o = load [copy] %f : $*C
348348
destroy_value %o : $C

0 commit comments

Comments
 (0)