Skip to content

Commit 8872fe6

Browse files
committed
Gardening: Migrate test suite to GH issues: AutoDiff/compiler_crashers_fixed (1/2)
1 parent 948cd10 commit 8872fe6

File tree

25 files changed

+90
-58
lines changed

25 files changed

+90
-58
lines changed

test/AutoDiff/compiler_crashers_fixed/sr12493-differentiable-function-extract-subst-function-type.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-54935-differentiable-function-extract-subst-function-type.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// RUN: %target-build-swift -O %s
22

3-
// SR-12493: SIL verification error regarding substituted function types and
3+
// https://github.com/apple/swift/issues/54935
4+
// SIL verification error regarding substituted function types and
45
// `differentiable_function_extract` instruction. Occurs only with `-O`.
56

6-
// FIXME(SR-13021): Disabled due to flakiness on Linux, likely related to TF-1197.
7+
// FIXME: Disabled due to flakiness on Linux (https://github.com/apple/swift/issues/55466), likely related to TF-1197.
78
// REQUIRES: SR13021
89

910
import _Differentiation
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %target-build-swift -O %s
22

3-
// SR-12548: SIL verification error regarding
4-
// `CapturePropagation::rewritePartialApply` for `partial_apply` with
5-
// `@convention(method)` callee.
3+
// https://github.com/apple/swift/issues/54992
4+
// SIL verification error regarding `CapturePropagation::rewritePartialApply`
5+
// for `partial_apply` with `@convention(method)` callee
66

77
import _Differentiation
88

test/AutoDiff/compiler_crashers_fixed/sr12559-derivative-attr-type-checking-parse-stdlib.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55003-derivative-attr-type-checking-parse-stdlib.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: not %target-swift-frontend-typecheck -parse-stdlib %s
22

3-
// SR-12559: `@derivative` attribute type-checking crash.
3+
// https://github.com/apple/swift/issues/55003
4+
// `@derivative` attribute type-checking crash
5+
//
46
// This program is not valid, but the compiler should not crash nonetheless.
57
// Reproducible only with `-parse-stdlib`.
68

test/AutoDiff/compiler_crashers_fixed/sr12641-silgen-immutable-address-use-verification-failure.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55085-silgen-immutable-address-use-verification-failure.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -enable-resilience -emit-sil -verify %s
22

3-
// SR-12641: SILGen verification error regarding `ImmutableAddressUseVerifier` and AutoDiff-generated code.
3+
// https://github.com/apple/swift/issues/55085
4+
// SILGen verification error regarding `ImmutableAddressUseVerifier`
5+
// and AutoDiff-generated code.
46

57
import _Differentiation
68

@@ -32,7 +34,7 @@ _ = pullback(at: Class(Resilient(x: 10)), of: f)
3234
// #9 0x00000000011e6add (anonymous namespace)::ImmutableAddressUseVerifier::isMutatingOrConsuming(swift::SILValue)
3335
// #10 0x00000000011ce0b4 (anonymous namespace)::SILVerifier::visitSILBasicBlock(swift::SILBasicBlock*)
3436

35-
// Related crasher discovered while fixing SR-12641.
37+
// Related crasher discovered while fixing the aforementioned issue.
3638

3739
class LoadableOriginal<T: Differentiable>: Differentiable {
3840
var x: T

test/AutoDiff/compiler_crashers_fixed/sr12642-differentiable-derivation-redeclared-property.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55086-differentiable-derivation-redeclared-property.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
// RUN: %target-swift-frontend -typecheck -verify %s
22

3-
// SR-12642: Crash regarding `Differentiable` derived conformances and
4-
// redeclared properties. This crash surfaced only briefly during the
5-
// implementation of wrapped property differentiation (SR-12637).
3+
// https://github.com/apple/swift/issues/55086
4+
// Crash regarding `Differentiable` derived conformances and redeclared
5+
// properties
6+
//
7+
// This crash surfaced only briefly during the implementation of wrapped
8+
// property differentiation (https://github.com/apple/swift/issues/55081).
69

710
import _Differentiation
811

test/AutoDiff/compiler_crashers_fixed/sr12650-noderivative-parameter-type-mangling.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55094-noderivative-parameter-type-mangling.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// RUN: %target-build-swift -g %s
22

3-
// SR-12650: IRGenDebugInfo type reconstruction crash because `@noDerivative`
4-
// parameters are not mangled.
3+
// https://github.com/apple/swift/issues/55094
4+
// IRGenDebugInfo type reconstruction crash because `@noDerivative` parameters
5+
// are not mangled
56

6-
// FIXME(SR-13021): Disabled due to flakiness on Linux, likely related to TF-1197.
7+
// FIXME: Disabled due to flakiness on Linux (https://github.com/apple/swift/issues/55466), likely related to TF-1197.
78
// REQUIRES: SR13021
89

910
import _Differentiation

test/AutoDiff/compiler_crashers_fixed/sr12656-differentiation-opaque-result-type.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55099-differentiation-opaque-result-type.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: not %target-swift-frontend -disable-availability-checking -emit-sil -verify %s
22

3-
// SR-12656: Differentiation transform crashes for original function with opaque
3+
// https://github.com/apple/swift/issues/55099
4+
// Differentiation transform crashes for original function with opaque
45
// result type.
56
//
67
// If supporting this is non-trivial, we could reject earlier during Sema.

test/AutoDiff/compiler_crashers_fixed/sr12732-optimize-partial-apply-convention-thin-only.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55177-optimize-partial-apply-convention-thin-only.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// RUN: %target-build-swift -Osize %s
22

3-
// SR-12732: Fix `partial_apply` optimization.
3+
// https://github.com/apple/swift/issues/55177
4+
// Fix `partial_apply` optimization
45

56
// Do not rewrite `partial_apply` to `thin_to_thick_function` if the specialized
67
// callee is not `@convention(thin)`.
78

8-
// FIXME(SR-13021): Disabled due to flakiness on Linux, likely related to TF-1197.
9+
// FIXME: Disabled due to flakiness on Linux (https://github.com/apple/swift/issues/55466), likely related to TF-1197.
910
// REQUIRES: SR13021
1011

1112
import DifferentiationUnittest

test/AutoDiff/compiler_crashers_fixed/sr12744-unhandled-pullback-indirect-result.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55189-unhandled-pullback-indirect-result.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -emit-sil -verify %s
22

3-
// SR-12744: Pullback generation crash for unhandled indirect result.
3+
// https://github.com/apple/swift/issues/55189
4+
// Pullback generation crash for unhandled indirect result
5+
//
46
// May be due to inconsistent derivative function type calculation logic in
57
// `VJPEmitter::createEmptyPullback`.
68

test/AutoDiff/compiler_crashers_fixed/sr12886-sr12887-vjp-emitter-definite-initialization.swift renamed to test/AutoDiff/compiler_crashers_fixed/issue-55333-55334-vjp-emitter-definite-initialization.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33

44
// Test crashes related to differentiation and definite initialization.
55

6-
// SR-12886: SIL memory lifetime verification error due to
7-
// `SILCloner::visitAllocStack` not copying the `[dynamic_lifetime]` attribute.
6+
// https://github.com/apple/swift/issues/55333
7+
// SIL memory lifetime verification error due to `SILCloner::visitAllocStack`
8+
// not copying the `[dynamic_lifetime]` attribute
89

9-
// SR-12887: Debug scope error for pullback struct `struct` instruction
10-
// generated by `VJPEmitter`.
10+
// https://github.com/apple/swift/issues/55334
11+
// Debug scope error for pullback struct `struct` instruction generated
12+
// by `VJPEmitter`
1113

12-
// FIXME(SR-13021): Disabled due to flakiness on Linux, likely related to TF-1197.
14+
// FIXME: Disabled due to flakiness on Linux (https://github.com/apple/swift/issues/55466), likely related to TF-1197.
1315
// REQUIRES: SR13021
1416

1517
import _Differentiation
@@ -44,11 +46,11 @@ struct Tensor<T>: Differentiable {
4446
// CHECK-LABEL: sil hidden @AD__$s4main6TensorVyACyxGx_ADtcfC__vjp_src_0_wrt_1_l : $@convention(method) <τ_0_0> (@in τ_0_0, @in Tensor<τ_0_0>, @thin Tensor<τ_0_0>.Type) -> (@out Tensor<τ_0_0>, @owned @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @out τ_0_1 for <Tensor<τ_0_0>.TangentVector, Tensor<τ_0_0>.TangentVector>) {
4547
// CHECK: [[SELF_ALLOC:%.*]] = alloc_stack [dynamic_lifetime] $Tensor<τ_0_0>, var, name "self"
4648

47-
// SR-12886 original error:
49+
// Original error in https://github.com/apple/swift/issues/55333:
4850
// SIL memory lifetime failure in @AD__$s5crash6TensorVyACyxGx_ADtcfC__vjp_src_0_wrt_1_l: memory is not initialized, but should
4951
// memory location: %29 = struct_element_addr %5 : $*Tensor<τ_0_0>, #Tensor.x // user: %30
5052
// at instruction: destroy_addr %29 : $*τ_0_0 // id: %30
5153

52-
// SR-12887 original error:
54+
// Original error in https://github.com/apple/swift/issues/55334:
5355
// SIL verification failed: Basic block contains a non-contiguous lexical scope at -Onone: DS == LastSeenScope
5456
// %26 = struct $_AD__$s5crash6TensorVyACyxGx_ADtcfC_bb0__PB__src_0_wrt_1_l<τ_0_0> () // users: %34, %28

0 commit comments

Comments
 (0)