You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AutoDiff] Revisit differentiation of struct instruction with aggregate adjoint value. (swiftlang#25234)
In the latest Swift, no calls to an initializer will emit a `struct` instruction, so differentiation of the `struct` instruction will only be for differentiating struct initializer functions themselves. In struct initializer functions, since there's only one `struct` operation, `AdjointEmitter::visitStructInst` will never get an adjoint value of kind `AdjointValueKind::Aggregate`. This PR marks that case unreachable.
0 commit comments