swift
317ef498 - [AutoDiff] Destroy unused pullback direct results. (#28207)

Commit
5 years ago
[AutoDiff] Destroy unused pullback direct results. (#28207) In `PullbackEmitter::visitApplyInst`, destroy unused pullback direct results. This is needed for VJPs extracted from `@differentiable` function callees, where the `@differentiable` function's differentiation parameter indices are a superset of the active `apply` parameter indices. Resolves TF-953.
Author
Parents
  • lib/SILOptimizer/Mandatory
    • File
      Differentiation.cpp
  • test/AutoDiff/compiler_crashers_fixed
    • File
      tf928-pullback-ownership-memory-leak.swift