mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, we just always promoted destroy_addr. With ownership, this does not work as well since we need to be able to reason about the take operation that we are performing. In the general case, this would require adding code to pred-memopts for tracking reads and for compensation store code since we would need to eliminate the store of the taken value to prevent a double use. I am going to loop back around later in the year and add back this code once the time is available. I filed SR-6341. In case any third party contributor is interested in looking at re-enabling this optimization before I get back to it. rdar://31521023
564 B
564 B