-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Sema: Some small cleanups in CSBindings.cpp and related code #78267
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
Sema: Some small cleanups in CSBindings.cpp and related code #78267
Conversation
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
Is this NFC? |
752aa64
to
d9cdc5c
Compare
d9cdc5c
to
a450802
Compare
@swift-ci Please smoke test |
@swift-ci Please test source compatibility |
@xedin I finally fixed the test failures here. Also I'm leaving in the commit that adds BindingSet::operator==, which was used for the verification in the old approach I was working on. If we don't need this operator within a week or two let's remove it. |
Building the DenseMap in determineBestBindings() is extremely expensive. Also rename getCurrentBindings() to getPotentialBindings().
We're not planning on removing the splitter because it is a big win in some cases, but we want to run it less often since it can also be a source of overhead. This flag allows us to compare performance to understand the tradeoffs better.
This will be used for debugging.
a450802
to
9a48fed
Compare
@swift-ci Please smoke test |
This is part of a larger set of changes. Not much here.