Skip to content

Commit 9404e9c

Browse files
committed
[Test] Improved patterns.
1 parent d3717d3 commit 9404e9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/SILOptimizer/address_lowering.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,9 +1351,9 @@ entry(%instance : @owned $Pair<T>):
13511351
// CHECK: {{bb[0-9]+}}([[INDEX_OUT:%[^,]+]] : $*Self.Index, [[SELF:%[^,]+]] : $*Self):
13521352
// CHECK: [[MAYBE_INDEX_ADDR:%[^,]+]] = alloc_stack $Optional<Builtin.Int64>
13531353
// CHECK: try_apply {{%[^,]+}}<Self, Builtin.Int64>([[MAYBE_INDEX_ADDR]], [[SELF]]) : $@convention(thin) <τ_0_0 where τ_0_0 : MyCollection><τ_1_0> (@inout τ_0_0) -> (@out Optional<τ_1_0>, @error any Error), normal [[YES_BLOCK:bb[0-9]+]], error [[NO_BLOCK:bb[0-9]+]]
1354-
// CHECK: [[NO_BLOCK]]([[REGISTER_16:%[^,]+]] : @owned $any Error):
1354+
// CHECK: [[NO_BLOCK]]([[ERROR:%[^,]+]] : @owned $any Error):
13551355
// CHECK: dealloc_stack [[MAYBE_INDEX_ADDR]]
1356-
// CHECK: br [[EXIT_ERROR:bb[0-9]+]]([[REGISTER_16]] : $any Error)
1356+
// CHECK: br [[EXIT_ERROR:bb[0-9]+]]([[ERROR]] : $any Error)
13571357
// CHECK: [[EXIT_ERROR]]([[ERROR_TO_THROW:%[^,]+]] : @owned $any Error):
13581358
// CHECK: throw [[ERROR_TO_THROW]]
13591359
// CHECK: [[YES_BLOCK]]
@@ -1682,7 +1682,7 @@ exit:
16821682
// CHECK: [[FAILURE]]:
16831683
// CHECK: destroy_addr [[SRC]] : $*T
16841684
// CHECK: [[SUCCESS]]:
1685-
// CHECK: [[REGISTER_3:%[^,]+]] = load [trivial] [[DEST_ADDR]] : $*@thick any AnyObject.Type
1685+
// CHECK: load [trivial] [[DEST_ADDR]] : $*@thick any AnyObject.Type
16861686
// CHECK-LABEL: } // end sil function 'test_checked_cast_br6'
16871687
sil [ossa] @test_checked_cast_br6 : $@convention(thin) <T> (@in T) -> () {
16881688
entry(%instance : @owned $T):

0 commit comments

Comments
 (0)