Skip to content

Commit 075768b

Browse files
committed
Gardening: Migrate test suite to GH issues: SILOptimizer (2/2)
1 parent 453fd22 commit 075768b

16 files changed

+66
-37
lines changed

test/SILOptimizer/exclusivity_static_diagnostics.sil

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,11 +1064,15 @@ bb0(%0 : @guaranteed $ClassWithStoredProperty, %1 : $Int32):
10641064
return %v : $()
10651065
}
10661066

1067-
// <rdar://problem/41976355> [SR-8201]: Swift 4.2 Crash in DiagnoseStaticExclusivity (llvm_unreachable)
1068-
// mutatingNoescapeWithThunk and mutatingNoescapeConflictWithThunk.
1069-
// Test that noescape closure verification allows a closure with @inout_aliasable argument convention,
1070-
// which may only be used as a nonescaping closure, can be passed to a reabstraction thunk
1071-
// without the @noescape function-type argument convention.
1067+
// rdar://problem/41976355
1068+
// https://github.com/apple/swift/issues/50733
1069+
// Swift 4.2 crash in 'DiagnoseStaticExclusivity' (llvm_unreachable)
1070+
//
1071+
// Test that '@noescape' closure verification allows a closure with
1072+
// '@inout_aliasable' argument convention, which may only be used as a
1073+
// nonescaping closure, to be passed to a reabstraction thunk without the
1074+
// '@noescape' function-type argument convention ('mutatingNoescapeWithThunk'
1075+
// and 'mutatingNoescapeConflictWithThunk').
10721076

10731077
sil [ossa] @mutatingNoescapeHelper : $@convention(thin) (Optional<UnsafePointer<Int32>>, @inout_aliasable Int32) -> () {
10741078
bb0(%0 : $Optional<UnsafePointer<Int32>>, %1 : $*Int32):
@@ -1206,16 +1210,18 @@ bb3(%block : @owned $@convention(block) @noescape () -> ()):
12061210
}
12071211

12081212
// -----------------------------------------------------------------------------
1209-
// <rdar://problem/42242406> [SR-8266]: Compiler crash when checking
1210-
// exclusivity of inout alias:
1213+
// rdar://problem/42242406
1214+
// https://github.com/apple/swift/issues/50797
1215+
// Compiler crash when checking exclusivity of 'inout' alias
1216+
//
1217+
// Test that 'checkNoEscapePartialApply' does not assert on a '@noescape'
1218+
// closure passed through a block argument:
1219+
//
12111220
// closureWithNoCapture
1212-
// closureWithConflict,
1221+
// closureWithConflict
12131222
// partialApplyPhiThunk
1214-
// testPartialApplyPhi.
1215-
// testDirectPartialApplyPhi.
1216-
//
1217-
// Test that 'checkNoEscapePartialApply' does not assert on a noescape
1218-
// closure passed through a block argument.
1223+
// testPartialApplyPhi
1224+
// testDirectPartialApplyPhi
12191225

12201226
sil hidden [ossa] @closureWithNoCapture : $@convention(thin) (Int) -> () {
12211227
bb0(%0 : $Int):

test/SILOptimizer/exclusivity_static_diagnostics.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,11 @@ func nestedConflict(x: inout Int) {
619619
// Avoid diagnosing a conflict on disjoint struct properies when one is a `let`.
620620
// This requires an address projection before loading the `let` property.
621621
//
622-
// <rdar://problem/35561050> [SR-10145][Exclusivity] SILGen loads entire struct when reading captured 'let' stored property
622+
// rdar://problem/35561050
623+
// https://github.com/apple/swift/issues/52547
624+
// [Exclusivity] SILGen loads entire struct when reading captured 'let'
625+
// stored property
626+
623627
struct DisjointLetMember {
624628
var dummy: AnyObject // Make this a nontrivial struct because the SIL is more involved.
625629
mutating func get(makeValue: ()->Int) -> Int {

test/SILOptimizer/existential_specializer_soletype.sil

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,11 @@ bb0(%0 : $S, %1 : $*P):
383383

384384
//===----------------------------------------------------------------------===//
385385
// Test an existential with a generic constraint
386-
// rdar://56923071; [SR-11714]: Compiler crash when generic class is passed as
387-
// a parameter to a function accepting a generic class
386+
//
387+
// rdar://56923071
388+
// https://github.com/apple/swift/issues/54123
389+
// Compiler crash when generic class is passed as a parameter to a function
390+
// accepting a generic class
388391
//
389392
// Allowing this results in the error:
390393
// SIL verification failed: Operand is of an ArchetypeType that does not exist
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
// RUN: %target-swift-frontend -O -emit-sil -primary-file %s %S/Inputs/extension-with-nested-type.swift -module-name test
22

3+
// https://github.com/apple/swift/issues/47534
4+
35
// Intentionally empty.

test/SILOptimizer/sr-5068.sil renamed to test/SILOptimizer/issue-47644.sil

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// REQUIRES: PTRSIZE=64
44

5+
// https://github.com/apple/swift/issues/47644
6+
57
sil_stage canonical
68

79
import Builtin

test/SILOptimizer/let_properties_opts.sil

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import Builtin
66
import Swift
77

88
// Test initialization of a constant aggregate "let".
9-
// <rdar://problem/45691574> [SR-9146] IBAnimatable - SILCloner crash in LetPropertiesOpt.
9+
// rdar://problem/45691574
10+
// https://github.com/apple/swift/issues/51642
11+
// IBAnimatable - 'SILCloner' crash in 'LetPropertiesOpt'
1012

1113
struct Point {
1214
var x: Int64

test/SILOptimizer/return.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ struct StructWithIUOinit : InitProtocol {
159159
init!(_ x: Int) { } // no missing-return error
160160
}
161161

162-
func testSR13753() {
163-
// SR-13753
162+
// https://github.com/apple/swift/issues/56150
163+
func f_56150() {
164164
let _ : () -> Int = {
165165
var x : Int {
166166
get { 0 }
@@ -217,8 +217,9 @@ func testSR13753() {
217217
}
218218
}
219219

220-
// SR-14505
221-
struct SR14505 {
220+
// https://github.com/apple/swift/issues/56857
221+
222+
struct S_56857 {
222223
let b = true
223224
var x: Int {
224225
if b {
@@ -236,7 +237,7 @@ struct SR14505 {
236237
}
237238
}
238239

239-
class SR14505_C {
240+
class C_56857 {
240241
static let a = false
241242
let b = true
242243

test/SILOptimizer/sil_combine_concrete_existential.sil

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ import SwiftShims
1818
// SILCombine should bailout since it does not propagate
1919
// type substitutions on the return value.
2020
//
21-
// <rdar://40555427> [SR-7773]:
22-
// SILCombiner::propagateConcreteTypeOfInitExistential fails to full propagate
23-
// type substitutions.
21+
// rdar://40555427
22+
// https://github.com/apple/swift/issues/50312
23+
// 'SILCombiner::propagateConcreteTypeOfInitExistential' fails to fully
24+
// propagate type substitutions.
2425
//===----------------------------------------------------------------------===//
2526
public protocol P : AnyObject {
2627
}
@@ -722,7 +723,9 @@ bb3(%20 : $Error):
722723
}
723724

724725
// -----------------------------------------------------------------------------
725-
// rdar://88664423 (SR-15791: Miscompile under -O with mutating protocol method)
726+
// rdar://88664423
727+
// https://github.com/apple/swift/issues/58068
728+
// Miscompile under -O with mutating protocol method
726729
//
727730
// Basic outline (test case has more copies):
728731
// %1 = alloc_stack $PPP

test/SILOptimizer/sil_combine_concrete_existential.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
// sil-combine should bailout since it does not propagate
88
// type substitutions on the return value.
99
//
10-
// <rdar://40555427> [SR-7773]:
11-
// SILCombiner::propagateConcreteTypeOfInitExistential fails to full propagate
12-
// type substitutions.
10+
// rdar://40555427
11+
// https://github.com/apple/swift/issues/50312
12+
// 'SILCombiner::propagateConcreteTypeOfInitExistential' fails to fully
13+
// propagate type substitutions.
1314
//===----------------------------------------------------------------------===//
1415
public protocol P: class {}
1516

test/SILOptimizer/sil_combine_objc.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
22

3-
// See https://bugs.swift.org/browse/SR-5065, rdar://32511494
3+
// https://github.com/apple/swift/issues/47641, rdar://32511494
44
// XFAIL: *
55

66
sil_stage canonical

test/SILOptimizer/sil_combine_objc_ossa.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-sil-opt -enable-objc-interop -enable-sil-verify-all %s -sil-combine | %FileCheck %s
22

3-
// See https://bugs.swift.org/browse/SR-5065, rdar://32511494
3+
// See https://github.com/apple/swift/issues/47641, rdar://32511494
44
// XFAIL: *
55

66
sil_stage canonical

test/SILOptimizer/silcombine_runtime_crash.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// REQUIRES: executable_test
77

8-
// This is an end-to-end test for SR-9627.
8+
// This is an end-to-end test for https://github.com/apple/swift/issues/52073.
99

1010
@inline(never)
1111
func save(value: Double?) {

test/SILOptimizer/simplify_cfg_simple.sil

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ bb3:
3636
// Test that SimplifyCFG::simplifyBlocks, tryJumpThreading does not
3737
// perform unbounded loop peeling.
3838
//
39-
// rdar://73357726 ([SR-14068]: Compiling with optimisation runs indefinitely for grpc-swift)
39+
// rdar://73357726
40+
// https://github.com/apple/swift/issues/56457
41+
// Compiling with optimisation runs indefinitely for grpc-swift
42+
//
4043
// CHECK-LABEL: sil @testInfinitePeeling : $@convention(method) (Builtin.Int64, Enum) -> () {
4144
//
4245
// There is only one switch_enum blocks, and it is no longer in a loop.

test/SILOptimizer/simplify_cfg_trivial_jumpthread.sil

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ enum BoolLike { case true_, false_ }
2020
// Test that SimplifyCFG::simplifyBlocks, tryJumpThreading does not
2121
// perform unbounded loop peeling.
2222
//
23-
// rdar://73357726 ([SR-14068]: Compiling with optimisation runs indefinitely for grpc-swift)
23+
// rdar://73357726
24+
// https://github.com/apple/swift/issues/56457
25+
// Compiling with optimisation runs indefinitely for grpc-swift
2426
//
2527
// Note: this no longer attempts to run jump-threading infinitely, so
2628
// does not actually unit test the bailout. But it is still an

test/SILOptimizer/stack_promotion_crash.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Check that the compiled code does not crash because of a wrong
99
// stack-promoted array.
10-
// End-to-end test for https://bugs.swift.org/browse/SR-10444
10+
// End-to-end test for https://github.com/apple/swift/issues/52844.
1111

1212
public struct Beta {
1313
var gamma: [Int]

test/SILOptimizer/unused_containers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
// REQUIRES: swift_stdlib_no_asserts
44

5-
// FIXME: https://bugs.swift.org/browse/SR-7806
5+
// FIXME: https://github.com/apple/swift/issues/50345
66
// REQUIRES: CPU=arm64 || CPU=x86_64
77
// REQUIRES: rdar45797168
88

9-
// FIXME: https://bugs.swift.org/browse/SR-9008
9+
// FIXME: https://github.com/apple/swift/issues/51511
1010

1111
//CHECK-LABEL: @$s17unused_containers16empty_array_testyyF
1212
//CHECK: bb0:

0 commit comments

Comments
 (0)