Skip to content

[5.1][AST] Increase size of type variable id field to 20 bits #25716

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

Merged
merged 1 commit into from
Jun 24, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 24, 2019

Currently id field is only 12 bits long which is a lot smaller
than graph index which is 28 bits and creates problems with
large collections of literals since id is going to overflow
pretty quickly (4096 elements max). Let's change it so both
fields have the same 20 bits which is big enough.

Resolves: SR-10914
Resolves: rdar://problem/51616307

Cherry-pick of #25666

Currently `id` field is only 12 bits long which is a lot smaller
than `graph index` which is 28 bits and creates problems with
large collections of literals since `id` is going to overflow
pretty quickly (4096 elements max). Let's change it so both
fields have the same 20 bits which is big enough.

Resolves: [SR-10914](https://bugs.swift.org/browse/SR-10914)
Resolves: rdar://problem/51616307
@xedin
Copy link
Contributor Author

xedin commented Jun 24, 2019

@swift-ci please test

@xedin xedin merged commit 8bd32dd into swiftlang:swift-5.1-branch Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant