Closed
Description
Previous ID | SR-3727 |
Radar | rdar://problem/31411198 |
Original Reporter | @ematejska |
Type | Task |
Status | Resolved |
Resolution | Done |
Additional Detail from JIRA
Votes | 0 |
Component/s | |
Labels | Task, AffectsABI |
Assignee | None |
Priority | Medium |
md5: fe502935ae3aee66b438641e4a3b8d0a
relates to:
- SR-5267 Optional layout is inefficient
Issue Description:
Ahead of ABI Stability, determine the layout algorithm for multi-payload enums. The algorithm should try to rearrange payloads so as to coalesce cases and save space. This rearrangement can also improve performance and code size. For example, if ARC-ed payload components reside in the same location, operations like copy can be done directly on the values without extensive switching.