Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-12961] Optimize MemoryLayout.offset(of:) to a constant when possible #55407

Open
belkadan opened this issue Jun 9, 2020 · 0 comments
Open
Labels
compiler The Swift compiler itself improvement

Comments

@belkadan
Copy link
Contributor

belkadan commented Jun 9, 2020

Previous ID SR-12961
Radar None
Original Reporter @belkadan
Type Improvement
Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Improvement
Assignee None
Priority Medium

md5: 3006f7bef7c508b1ed52b42764cc52c7

Issue Description:

It would be nice™ if calls to MemoryLayout.offset(of:) were replaced by a constant when the key path is known to refer to a stored property (or tuple element) and the layout of the base type is statically known.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler itself improvement
Projects
None yet
Development

No branches or pull requests

1 participant