Skip to content

[Sema] SpaceEngine: Improve handling of empty/non-reduced spaces in c… #16300

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
May 2, 2018

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 2, 2018

…onstrutors/disjuncts

Eagerly remove empty (sub-)spaces from constructors and disjuncts
to minimize number of operations required to check space coverage.
Also return original constructor space while subtracting a pair of
constructors, instead of disjunct, if subtraction of one of its
sub-spaces produced the same space, this reduces the number of
disjuncts in the path.

Resolves: rdar://problem/39710335

…onstrutors/disjuncts

Eagerly remove empty (sub-)spaces from constructors and disjuncts
to minimize number of operations required to check space coverage.
Also return original constructor space while subtracting a pair of
constructors, instead of disjunct, if subtraction of one of its
sub-spaces produced the same space, this reduces the number of
disjuncts in the path.

Resolves: rdar://problem/39710335
@xedin xedin requested a review from jrose-apple May 2, 2018 07:16
@xedin
Copy link
Contributor Author

xedin commented May 2, 2018

@jrose-apple Looks like these changes are enough to make one of the slow cases faster, I'm going to work on the cartesian product separately after this, WDYT?

@xedin
Copy link
Contributor Author

xedin commented May 2, 2018

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 2, 2018

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

swift-ci commented May 2, 2018

Build failed
Swift Test OS X Platform
Git Sha - 3ea6635

@xedin
Copy link
Contributor Author

xedin commented May 2, 2018

Failure in SILOptimizer/sil_combine_global_addr.sil doesn’t seem related.

@jrose-apple
Copy link
Contributor

My hope is that we can do enough of this work eagerly that we can throw away simplify altogether, although maybe that's silly.

@xedin
Copy link
Contributor Author

xedin commented May 2, 2018

@swift-ci please test

@xedin xedin merged commit 9986178 into swiftlang:master May 2, 2018
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.

3 participants