mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Now we handle this case: %stack = alloc_stack $Protocol copy_addr %var to [initialization] %stack open_existential_addr immutable_access %stack ... destroy_addr %stack dealloc_stack %stack We only do this if we have immutable_access. To be conservative I still only let the normal whitelist of other instructions through. I am adding this optimization since I am going to be eliminating a SILGen peephole so I can enable SIL ownership verification everywhere.
66 KiB
66 KiB