Skip to content

Commit 18e1f80

Browse files
committed
[test/SILOptimizer] Fix typos
1 parent d5b4a17 commit 18e1f80

25 files changed

+45
-45
lines changed

test/SILOptimizer/abcopt_large_cfg.sil.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ bb0(%0: $Int32, %1: $Bool, %2: @owned $ArrayInt):
3232

3333
// CHECK-LABEL: sil [ossa] @test_very_deep_domtree :
3434

35-
// Currently there is nothing ot check here, because the optimization bails in
35+
// Currently there is nothing to check here, because the optimization bails in
3636
// this case.
3737
// In future we might check that even with a deep domtree it can hoist the check.
3838

test/SILOptimizer/access_enforcement_selection.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ sil [ossa] @takesInoutAndClosure : $@convention(thin) (@inout Builtin.Int64, @gu
6767
sil [ossa] @closureCapturingByStorageAddress : $@convention(thin) (@inout_aliasable Builtin.Int64) -> ()
6868

6969
// Test static enforcement of box addresses that escape via closure
70-
// partial_applys.
70+
// partial_applies.
7171
// application.
7272
// CHECK-LABEL: sil hidden [ossa] @escapeAsArgumentToPartialApply : $@convention(thin) () -> () {
7373
// CHECK: bb0:
@@ -99,7 +99,7 @@ bb0:
9999
return %9 : $()
100100
}
101101

102-
sil [dynamically_replacable] [ossa] @closureCapturingByStorageAddress2 : $@convention(thin) (@inout_aliasable Builtin.Int64) -> ()
102+
sil [dynamically_replaceable] [ossa] @closureCapturingByStorageAddress2 : $@convention(thin) (@inout_aliasable Builtin.Int64) -> ()
103103

104104
// Make sure that we handle dynamic_function_ref.
105105
sil hidden [ossa] @escapeAsArgumentToPartialApplyDynamic : $@convention(thin) () -> () {

test/SILOptimizer/access_storage_analysis.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ bb3(%7 : $Builtin.RawPointer):
690690
return %10 : $Int64
691691
}
692692

693-
// Test storage for SIL global variable declations.
693+
// Test storage for SIL global variable declarations.
694694

695695
sil_global hidden @testGlobal : $Builtin.Int64
696696

test/SILOptimizer/address_lowering.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ bb0(%error_exi : @guaranteed $any Error):
11271127
}
11281128

11291129
// Test a chain of projections multiple nodes of which feature an opened
1130-
// archetype AND the archetype-definining instruction for the first projection
1130+
// archetype AND the archetype-defining instruction for the first projection
11311131
// whose type has an opened archetype dominates all blocks but the
11321132
// archetype-defining instruction for the SECOND projection does not.
11331133
//

test/SILOptimizer/address_lowering_phi.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ merge(%sp : @owned $Pair<T>):
858858
// ^^^ ^^^ ^^^
859859
// %s projects out of %s2's storage
860860
// ^^^ ^^^
861-
// %box projects out of %s's strorage
861+
// %box projects out of %s's storage
862862
// ^^^
863863
// %t projects out of %box's storage
864864
// There is no interference (and only one incoming phi.)
@@ -911,7 +911,7 @@ exit:
911911
// ^^^ ^^^ ^^^
912912
// %s projects out of %s2's storage
913913
// ^^^ ^^^
914-
// %box projects out of %s's strorage
914+
// %box projects out of %s's storage
915915
// ^^^
916916
// %t projects out of %box's storage
917917
// There is interference of the _def_ projection (which can only be detected by

test/SILOptimizer/capture_propagation.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ bb0(%0 : $Builtin.Int32, %1 : $Builtin.FPIEEE32, %2 : $Builtin.RawPointer, %3 :
392392
// CHECK: %[[CONVERTED:[0-9]+]] = thin_to_thick_function %[[FR]] : $@convention(thin) () -> () to $@callee_owned () -> ()
393393
// CHECK-NOT: partial_apply
394394
// CHECK: apply %[[CALLEE]](%[[CONVERTED]]) : $@convention(thin) (@owned @callee_owned () -> ()) -> ()
395-
// CHECL-NOT: partial_apply
395+
// CHECK-NOT: partial_apply
396396
// CHECK: return
397397
sil @test_generic_capture_propagation2_caller : $@convention(thin) () -> () {
398398
%0 = integer_literal $Builtin.Int32, 0

test/SILOptimizer/devirt_generic_witness_method.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bb0(%0 : $*Item, %1 : $Dictionary<String, Any>, %2 : $@thick Item.Type):
2929
return %6 : $()
3030
}
3131

32-
// Check that it is possible to devirtualize a partial_appy of a generic witness_method.
32+
// Check that it is possible to devirtualize a partial_apply of a generic witness_method.
3333
// Since it is a derived class that invokes an implementation from a base class,
3434
// make sure that the resulting closure is properly converted into a required type.
3535

test/SILOptimizer/devirt_generic_witness_method_ownership.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bb0(%0 : $*Item, %1 : @owned $Dictionary<String, Any>, %2 : $@thick Item.Type):
2929
return %6 : $()
3030
}
3131

32-
// Check that it is possible to devirtualize a partial_appy of a generic witness_method.
32+
// Check that it is possible to devirtualize a partial_apply of a generic witness_method.
3333
// Since it is a derived class that invokes an implementation from a base class,
3434
// make sure that the resulting closure is properly converted into a required type.
3535

test/SILOptimizer/dictionary_lookup_with_default.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public struct S {
99
mutating func doSomething() { }
1010
}
1111

12-
// Check that all partial_applys can be optimized away so that no closure context needs to be allocated.
12+
// Check that all partial_applies can be optimized away so that no closure context needs to be allocated.
1313

1414
// CHECK-LABEL: sil @$s4test6testit_1xySDySiAA1SVGz_SitF :
1515
// CHECK-NOT: partial_apply

test/SILOptimizer/exclusivity_static_diagnostics.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ bb0(%0 : $*TestDynamic):
14791479

14801480
// This callee actually accesses different subpaths, but the caller's
14811481
// diagnostic should not be able to see that.
1482-
sil private [dynamically_replacable] [ossa] @testDynamicLocal : $@convention(thin) (@inout Builtin.Int64, @inout_aliasable TestDynamic) -> () {
1482+
sil private [dynamically_replaceable] [ossa] @testDynamicLocal : $@convention(thin) (@inout Builtin.Int64, @inout_aliasable TestDynamic) -> () {
14831483
bb0(%0 : $*Builtin.Int64, %1 : $*TestDynamic):
14841484
%literal = integer_literal $Builtin.Int64, 1
14851485
%access1 = begin_access [modify] [unknown] %0 : $*Builtin.Int64

0 commit comments

Comments
 (0)