Skip to content

DefiniteInitialization: use BasicBlockData instead of a map. #35552

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 2 commits into from
Jan 22, 2021

Conversation

eeckstein
Copy link
Contributor

plus: some minor improvements in BasicBlockData

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

* Instead of passing the vector type as template argument, use a SmallVector and just pass the inline size
* Increase the inline size to 32. Found by experiment, this fits 90% of all functions.
* add an API for getting data for newly created blocks.
And reuse this block data for all memory objects which are analyzed.
This is more efficient and avoids memory allocations.
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein eeckstein merged commit a72fcef into swiftlang:main Jan 22, 2021
@eeckstein eeckstein deleted the blockdata-in-DI branch January 22, 2021 14:32
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