swift
8c5737d1 - [ownership] Change thin_to_thick function to always produce a none value.

Commit
5 years ago
[ownership] Change thin_to_thick function to always produce a none value. It can already only accept values with none ownership and the merging of ownership around ownership phis ensure that if we phi this with a partial_apply or the like, we get the appropriate ownership on any such ownership phi values. We are now out of SILGen emitting fewer destroy_value unnecessarily on thin_to_thick functions. This changed some codegen and also forced me to update some tests/fix AutoDiff. I also deleted the DebugInfo test mandatoryinlining-wrongdebugscope.swift since: 1. It was depending on these destroys being there. 2. Given the need to improve the test @aprantl suggested I just eliminate it solving the test failure for me.
Author
Committer
Parents
Loading