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
differentiability_function_extract instruction has an optional explicit extractee type. This is currently used by the TypeSubstCloner and the LoadableByAddress transformation, which need to rewrite differentiability_function_extract instructions while preserving @differentiable function type invariants. (See here for an explanation.)
There is an assertion that differentiability_function_extract instructions do not have explicit extractee types outside of canonical/lowered SIL. However, this does not handle the SIL deserialization case above: when a function containing a differentiable_function_extract with an explicit type is deserialized into a raw SIL module due to optimizations being enabled.
Environment
swift-DEVELOPMENT-SNAPSHOT-2020-12-20-a
Additional Detail from JIRA
md5: 53b89215ebc9ec25f5ef29560f6b5ea5
Issue Description:
Reproducer:
differentiability_function_extract
instruction has an optional explicit extractee type. This is currently used by theTypeSubstCloner
and the LoadableByAddress transformation, which need to rewritedifferentiability_function_extract
instructions while preserving@differentiable
function type invariants. (See here for an explanation.)There is an assertion that
differentiability_function_extract
instructions do not have explicit extractee types outside of canonical/lowered SIL. However, this does not handle the SIL deserialization case above: when a function containing adifferentiable_function_extract
with an explicit type is deserialized into a raw SIL module due to optimizations being enabled.Single-file lit reproducer:
The text was updated successfully, but these errors were encountered: