Skip to content

Commit 880d4b6

Browse files
committed
[Test] Added sections to test file.
1 parent 0827390 commit 880d4b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/SILOptimizer/mem2reg_lifetime.sil

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ class C {}
522522
sil [ossa] @callee_guaranteed : $@convention(thin) (@guaranteed C) -> ()
523523
sil [ossa] @callee_owned : $@convention(thin) (@owned C) -> ()
524524

525+
// basic_N {{ functions consisting of a single block
525526

526527
// An owned instance of C is passed in, stored to the stack, used
527528
// non-consumingly once, and destroyed.
@@ -601,6 +602,9 @@ entry(%instance : @owned $C):
601602
return %res : $()
602603
}
603604

605+
// basic_N }}
606+
607+
// diamond_N {{ the usages of the alloc_stack occur over a diamond of blocks
604608

605609
// CHECK-LABEL: sil [ossa] @diamond_1 : $@convention(thin) (@owned C, @owned C) -> () {
606610
// CHECK: {{bb[^,]+}}([[INSTANCE_1:%[^,]+]] : @owned $C, [[INSTANCE_2:%[^,]+]] : @owned $C):
@@ -855,6 +859,8 @@ exit:
855859
return %result : $()
856860
}
857861

862+
// diamond_N }}
863+
858864
// =============================================================================
859865
// lexical scope specific }}
860866
// =============================================================================

0 commit comments

Comments
 (0)