Skip to content

Commit 1401b31

Browse files
authored
Merge pull request swiftlang#75028 from Sajjon/cyon_typo_batch__test__SILOptimizer
Typos: `test/SILOptimizer`
2 parents a3e0b17 + de9e50f commit 1401b31

21 files changed

+39
-39
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_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/forwarding_utils.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ entry(%0 : @owned $C, %1 : @owned $C):
5151
return %void : $()
5252
}
5353

54-
// In opaque SIL values mode, handle the tuple_pack_extract forwaded operand.
54+
// In opaque SIL values mode, handle the tuple_pack_extract forwarded operand.
5555
//
5656
// CHECK-LABEL: begin running test 1 of 2 on tuplePackExtractTest: forwarding_def_use_test with: %tuple
5757
// CHECK: USE: operand #0 of end_borrow %1 : $(repeat each T)
@@ -79,7 +79,7 @@ entry(%tuple_addr : $*(repeat each T)):
7979
return %retval : $()
8080
}
8181

82-
// Handle forwaded guaranteed values.
82+
// Handle forwarded guaranteed values.
8383
//
8484
// CHECK-LABEL: begin running test 1 of 2 on forwardingGuaranteedTest: forwarding_def_use_test with: %0
8585
// CHECK: USE: dead value: %5 = tuple (%3 : $C, %4 : $C)
@@ -211,7 +211,7 @@ bbExit:
211211
return %void : $()
212212
}
213213

214-
// Chain of owned values. Needs to resolve in a resonable amount of time.
214+
// Chain of owned values. Needs to resolve in a reasonable amount of time.
215215
//
216216
// CHECK-LABEL: begin running test 1 of 2 on forwardingTuplesTest: forwarding_def_use_test with: %0
217217
// CHECK: USE: operand #0 of destroy_value %{{.*}} : $(C, C)

test/SILOptimizer/hoist_destroy_addr.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ entry(%in_addr : $*X):
590590
return %retval : $X
591591
}
592592

593-
// If a begin_apply uses the address, the end_appy and abort_apply should be
593+
// If a begin_apply uses the address, the end_apply and abort_apply should be
594594
// regarded as uses too. Don't hoist over them.
595595
//
596596
// CHECK-LABEL: sil [ossa] @nohoist_over_end_apply_use : {{.*}} {

test/SILOptimizer/init_accessors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ struct TestNoInitAndInit {
185185

186186
var pointX: Int {
187187
@storageRestrictions(accesses: x)
188-
init(initalValue) {
188+
init(initialValue) {
189189
}
190190

191191
get { x }

0 commit comments

Comments
 (0)