mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
96e57d62f6
In regular swift this is a nice optimization. In embedded swift it's a requirement, because the compiler needs to be able to specialize generic deinits of non-copyable types. The new de-virtualization utilities are called from two places: * from the new DeinitDevirtualizer pass. It replaces the old MoveOnlyDeinitDevirtualization, which is very basic and does not fulfill the needs for embedded swift. * from MandatoryPerformanceOptimizations for embedded swift