mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mainly this is done for array literals. This new optimization creates a statically initialized global variable which is the allocated object. The alloc_ref instruction is replaced by a global_value instruction. This optimization can give significant performance improvements for large array literals.
2.4 KiB
2.4 KiB