[Autodiff][sil-optimizer] Modifies handling of differentiable functions in closure-lifetime-fixup pass
This commit modifies the closure-lifetime-fixup pass to skip fixing up closure-lifetimes for differentiable functions derived from thin_to_thick_function instructions. Such closures should be trivial and should not necessitate lifetime fixups as they do not capture any values.
Fixes https://github.com/apple/swift/issues/71510.
@swift-ci please test
@atrick This is a more near-term fix for the issue we were discussing here. Could you please take a look?
P.S. - I would still like to try and fix the core issues in SILGen, however, because the work is non-trivial I think Swift Autodiff could benefit from this change in the meanwhile.
@swift-ci please test macos
@atrick quick ping about this PR. Could you please take a look?
@swift-ci test Windows
preset=buildbot,tools=RA,stdlib=DA @swift-ci please test with preset
@swift-ci please test
@swift-ci please test macos
@atrick I've made some quick changes based on your feedback. Can you take a look now?