Skip to content

[semantic-arc-opts] Change semantic arc opts to use a SmallBlotSetVec… #26945

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

Conversation

gottesmm
Copy link
Contributor

…tor instead of a SmallSetVector.

Blotting is a trick with Map/Set vectors that involves one assigning None to the
vector at the index mapped to an entry instead of deleting the entry itself from
the vector. This ensures that we do not need to move elements of the vector down
when erasing elements from the worklist.

…tor instead of a SmallSetVector.

Blotting is a trick with Map/Set vectors that involves one assigning None to the
vector at the index mapped to an entry instead of deleting the entry itself from
the vector. This ensures that we do not need to move elements of the vector down
when erasing elements from the worklist.
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

@nate-chandler @atrick I realized in our conversation today I was using a set vector here instead of a blot set vector. Our conversation inspired me to fix this.

@gottesmm gottesmm merged commit 5085e45 into swiftlang:master Aug 30, 2019
@gottesmm gottesmm deleted the pr-380b7ca9a019868d2a9fe0de564bfbaabcabe894 branch August 30, 2019 02:04
@atrick
Copy link
Contributor

atrick commented Aug 30, 2019

Wow! We should never call vector::erase. I wonder how many times that's slipped through the cracks.
LGTM

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.

2 participants